I have Postfix/Dovecot setup correctly and compiled from Slackbuilds.org (I also have compiled amavisd-new from slackbuilds). I know it works fine as I can send and receive emails if I comment any of my config settings that have to do with amavisd-new. Once I uncomment them however I can no longer send or receive email.
In my /var/log/mailllog I get this when trying to send an email to an external domain
Code:
Aug 3 11:24:47 mypc postfix/qmgr[5955]: 6E240880EA7: from=<bob@mydomain.com>, size=1441, nrcpt=1 (queue active)
Aug 3 11:24:47 mypc postfix/lmtp[5963]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Aug 3 11:24:47 mypc postfix/lmtp[5963]: 6E240880EA7: to=<phillip@externaldomain.com>, relay=none, delay=0.21, delays=0.21/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Now there is no reason for the connection to be refused. It is allowed on my iptables firewall rule, which leads me to believe amavisd-new isn't really running.
netstat -tap shows this
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:imaps *:* LISTEN 1369/dovecot
tcp 0 0 *:nfsd *:* LISTEN -
tcp 0 0 mypc-mydom.ain.com:64738 *:* LISTEN 1422/murmurd
tcp 0 0 *:pop3s *:* LISTEN 1369/dovecot
tcp 0 0 *:time *:* LISTEN 5505/inetd
tcp 0 0 localhost:10025 *:* LISTEN 5953/master
tcp 0 0 *:submission *:* LISTEN 5953/master
tcp 0 0 localhost:20203 *:* LISTEN 1358/perl
tcp 0 0 *:netbios-ssn *:* LISTEN 1244/smbd
tcp 0 0 *:56109 *:* LISTEN -
tcp 0 0 *:pop3 *:* LISTEN 1369/dovecot
tcp 0 0 *:imap *:* LISTEN 1369/dovecot
tcp 0 0 *:20111 *:* LISTEN 1261/vsftpd
tcp 0 0 *:sunrpc *:* LISTEN 652/rpc.portmap
tcp 0 0 *:x11 *:* LISTEN 5007/X
tcp 0 0 *:auth *:* LISTEN 5505/inetd
tcp 0 0 *:51442 *:* LISTEN 730/rpc.mountd
tcp 0 0 192.168.122.1:domain *:* LISTEN 1493/dnsmasq
tcp 0 0 necc-data.datagl:domain *:* LISTEN 688/named
tcp 0 0 localhost:domain *:* LISTEN 688/named
tcp 0 0 localhost:ipp *:* LISTEN 858/cupsd
tcp 0 0 *:34679 *:* LISTEN 656/rpc.statd
tcp 0 0 *:smtp *:* LISTEN 5953/master
tcp 0 0 localhost:rndc *:* LISTEN 688/named
tcp 0 0 *:892 *:* LISTEN 712/rpc.rquotad
tcp 0 0 *:microsoft-ds *:* LISTEN 1244/smbd
tcp 0 0 *:20222 *:* LISTEN 685/sshd
tcp 0 0 mypc-mydom.ain.com:smtp server202.179.itc:31486 ESTABLISHED 6028/smtpd
tcp 0 0 mypc-mydom.ain.com:smtp static-93-581-133:39048 ESTABLISHED 5956/smtpd
tcp 0 0 mypc-mydom.ain.com:imaps static-93-2581-133:65137 ESTABLISHED 4717/dovecot/imap-l
tcp6 0 0 [::]:imaps [::]:* LISTEN 1369/dovecot
tcp6 0 0 [::]:pop3s [::]:* LISTEN 1369/dovecot
tcp6 0 0 [::]:submission [::]:* LISTEN 5953/master
tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN 1244/smbd
tcp6 0 0 [::]:pop3 [::]:* LISTEN 1369/dovecot
tcp6 0 0 [::]:imap [::]:* LISTEN 1369/dovecot
tcp6 0 0 [::]:x11 [::]:* LISTEN 5007/X
tcp6 0 0 [::]:http [::]:* LISTEN 1232/httpd
tcp6 0 0 ::1:ipp [::]:* LISTEN 858/cupsd
tcp6 0 0 [::]:smtp [::]:* LISTEN 5953/master
tcp6 0 0 ::1:rndc [::]:* LISTEN 688/named
tcp6 0 0 [::]:https [::]:* LISTEN 1232/httpd
tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN 1244/smbd
tcp6 0 0 [::]:20222 [::]:* LISTEN 685/sshd
So it seems the amavisd services are started, all except amavisd-new ?
And finally if I do /etc/rc.d/rc.amavisd-new I get
Code:
/etc/rc.d/rc.amavisd-new restart
amavis-mc daemon is not running
Starting amavis-mc daemon
Stopping amavisd-signer daemon
Starting amavisd-signer daemon
Restarting amavisd-new daemon
The amavisd daemon is apparently not running, no PID file /var/amavis/amavisd.pid
For one, there is no directory amavis in my /var folder and I remember when compiling from Slackbuilds it told me the home directory for amavis was /var/lib/amavis but maybe that isn't important. The rc.amavisd-new calls for a pid file in /var/run/amavis
Furthre more,
Code:
/etc/rc.d/rc.amavisd-new status
cat: /var/run/amavis/amavis-mc.pid: No such file or directory
amavis-mc daemon running with PID:
cat: /var/run/amavis/amavisd.pid: No such file or directory
amavisd-new daemon running with PID:
amavisd-signer daemon running with PID: 6133
Which is exactly what I thought...now...why is it doing this?