#1  
Old 9th October 2006, 20:22
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Amavis Problems

Hi,

Debian Sarge 3.1: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAssassin, ClamAV)

I'm getting the following error in Amavis:

Code:
Oct  9 14:29:45 mail postfix/qmgr[2188]: warning: connect to transport amavis: No such file or directory
What could the problem be?

Everytime I restart Amavis I get the following:

Code:
mail:~# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: amavisd-new.
________
ROLL BLUNTS

Last edited by wmrwl; 30th March 2011 at 08:23.
Reply With Quote
Sponsored Links
  #2  
Old 10th October 2006, 14:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
netstat -tap
? What's in /etc/postfix/master.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th October 2006, 18:39
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
What's the output of
Code:
netstat -tap
? What's in /etc/postfix/master.cf?
Netstat -tap:
Code:
mail:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN     1983/couriertcpd
tcp        0      0 localhost:10025         *:*                     LISTEN     2181/master
tcp        0      0 localhost:mysql         *:*                     LISTEN     2047/mysqld
tcp        0      0 *:imap2                 *:*                     LISTEN     1968/couriertcpd
tcp        0      0 *:www                   *:*                     LISTEN     2217/apache
tcp        0      0 *:ssh                   *:*                     LISTEN     2202/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN     2181/master
tcp        0      0 10.0.0.4:imap2          h-68-166-225-202.:62953 ESTABLISHED7175/imapd
tcp        0      0 10.0.0.4:imap2          h-68-166-225-202.:62954 ESTABLISHED7176/imapd
tcp        0    296 10.1.0.4:ssh            10.1.0.253:3612         ESTABLISHED7183/sshd: root@tty
tcp        0      0 10.0.0.4:59378          badfish.securitymin:www CLOSE_WAIT 1950/freshclam
master.cf:

Code:
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n      -       -       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#628      inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       -       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
### Added by Rob on 10/9/2006 ###
127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1
Reply With Quote
  #4  
Old 11th October 2006, 08:45
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK I see now that I was missing

Code:
amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
from master.cf so I added that. I also rebooted the machine and noticed that it said spamassassin was not able to start and to check /etc/default/spamassassin. I opened the file and saw
Code:
# Change to one to enable spamd
ENABLED=0
So I changed it to:

Code:
# Change to one to enable spamd
ENABLED=1
And I rebooted the machine again.

Now my mail.log says:

Code:
Oct 11 02:53:46 mail postfix/smtp[2477]: EC1ED19C42D: to=<admin@domain.com>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
I should also mention that I am technically running Debian testing etch, but my sources.list is:

Code:
deb http://ftp.debian.org/debian sarge main
I dont know if that makes a difference.
Reply With Quote
  #5  
Old 11th October 2006, 13:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by wmrwl
Now my mail.log says:

Code:
Oct 11 02:53:46 mail postfix/smtp[2477]: EC1ED19C42D: to=<admin@domain.com>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 11th October 2006, 20:13
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

netstat -tap:

Code:
mail:~# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:imaps                 *:*                     LISTEN     1985/couriertcpd
tcp        0      0 localhost:10025         *:*                     LISTEN     2183/master
tcp        0      0 localhost:mysql         *:*                     LISTEN     2049/mysqld
tcp        0      0 localhost:spamd         *:*                     LISTEN     3472/spamd child
tcp        0      0 *:imap2                 *:*                     LISTEN     1970/couriertcpd
tcp        0      0 *:www                   *:*                     LISTEN     2227/apache
tcp        0      0 *:ssh                   *:*                     LISTEN     2212/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN     2183/master
tcp        0     52 10.1.0.4:ssh            10.1.0.253:1114         ESTABLISHED3

Last edited by wmrwl; 11th October 2006 at 20:18.
Reply With Quote
  #7  
Old 12th October 2006, 17:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/postfix/main.cf (please strip out the comments)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 12th October 2006, 20:10
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Main.cf

Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = mail.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domain.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.1/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_mailbox_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Reply With Quote
  #9  
Old 13th October 2006, 16:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Do you use a firewall on the Debian system? If so, disable it for now.
Also, did you try to reboot the server?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 13th October 2006, 17:18
wmrwl wmrwl is offline
Member
 
Join Date: Sep 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

There is no firewall on the machine. I was going to set that up after the mail server is working.

I rebooted and still get this in mail.log:

Code:
Oct 13 11:27:21 mail postfix/smtpd[2263]: connect from bay0-omc1-s31.bay0.hotmail.com[65.54.246.103]
Oct 13 11:27:21 mail postfix/smtpd[2263]: ADF3819C425: client=bay0-omc1-s31.bay0.hotmail.com[65.54.246.103]
Oct 13 11:27:21 mail postfix/cleanup[2270]: ADF3819C425: message-id=<BAY119-F60F6892E0EE5795EE4BA4BC0A0@phx.gbl>
Oct 13 11:27:21 mail postfix/qmgr[2192]: ADF3819C425: from=<myemail@hotmail.com>, size=1996, nrcpt=1 (queue active)
Oct 13 11:27:22 mail postfix/smtpd[2263]: disconnect from bay0-omc1-s31.bay0.hotmail.com[65.54.246.103]
Oct 13 11:27:22 mail postfix/smtp[2271]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
Oct 13 11:27:22 mail postfix/smtp[2271]: ADF3819C425: to=<admin@domain.com>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Everytime I restart Amavis I get:

Code:
mail:~# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: amavisd-new.
I have tried to purge and reinstall a few times, but still keep getting this same error.

Last edited by wmrwl; 13th October 2006 at 17:44.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with groups/grpconv linuxfast General 28 21st April 2008 09:35
Amavis smtp Problems Wiesemarc Server Operation 3 14th September 2006 18:08
Mail issue with Postfix + Amavis + Spamassassin mhxy594 Server Operation 3 21st August 2006 06:50
Empty Recycle Bin jon335 General 40 6th May 2006 11:56
Help! Real newbie having problems installing Linux t-kiss Kernel Questions 5 4th April 2006 15:14


All times are GMT +2. The time now is 18:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.