|
From: vidax.net on 5 Feb 2007 12:22 Hello, I'm trying to get Postfix + Amavis + spamassassin to work. But in my logs (/var/log/mail.log), I get this error warning: connect to transport spamassassin: Connection refused coming back every minute. I know the spamd daemon is properly running: axel(a)sd-1:/$ ps -A |grep spamd 28290 ? 00:00:01 spamd 28295 ? 00:00:00 spamd 28296 ? 00:00:00 spamd and listening: axel(a)sd-1:/$ sudo netstat -anp -t tcp |grep spam tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 28290/spamd.pid I can even telnet spamd: axel(a)sd-1:/$ telnet localhost 783 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. So why am I getting this stupid error. If someone can help me, that'd be nice Thanks guys Axel
From: Mike on 5 Feb 2007 15:36 On Feb 5, 12:22 pm, vidax....(a)gmail.com wrote: > Hello, > > I'm trying to get Postfix + Amavis + spamassassin to work. But in my > logs (/var/log/mail.log), I get this error > warning: connect to transport spamassassin: Connection > refused > coming back every minute. > > I know the spamd daemon is properly running: > > axel(a)sd-1:/$ ps -A |grep spamd > 28290 ? 00:00:01 spamd > 28295 ? 00:00:00 spamd > 28296 ? 00:00:00 spamd > > and listening: > > axel(a)sd-1:/$ sudo netstat -anp -t tcp |grep spam > tcp 0 0 127.0.0.1:783 0.0.0.0:* > LISTEN 28290/spamd.pid > > I can even telnet spamd: > > axel(a)sd-1:/$ telnet localhost 783 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > > So why am I getting this stupid error. If someone can help me, that'd > be nice > > Thanks guys > > Axel I'd like to see what your main.cf and master.cf looks like, do you have port 783 properly configured in each of those? Thanks Mike
From: vidax.net on 5 Feb 2007 17:13 Thanks for your help Mike: here is my main.cf: smtpd_banner = $myhostname ESMTP (Debian/GNU) biff = no disable_vrfy_command = yes smtpd_helo_required = yes mydomain = localhost.localdomain append_dot_mydomain = yes delay_warning_time = 4h myhostname = sd-xxxx.dedibox.fr mydestination = localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8 inet_interfaces = all smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain, warn_if_reject reject_unverified_sender smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_unknown_recipient_domain, reject_non_fqdn_recipient smtpd_client_restrictions = reject_unknown_client, permit_mynetworks virtual_transport = virtual virtual_mailbox_limit = 20000000 message_size_limit = 2900000 virtual_trash_count=yes virtual_alias_maps =mysql:/etc/postfix/conf/mysql- virtual_aliases.cf,mysql:/etc/postfix/conf/mysql- virtual_aliases_mailbox.cf virtual_mailbox_domains = mysql:/etc/postfix/conf/mysql- virtual_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/conf/mysql- virtual_mailboxes.cf virtual_mailbox_base = /var/spool/vmail/ virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 virtual_mailbox_limit_inbox = yes virtual_create_maildirsize = yes virtual_mailbox_extended = yes virtual_mailbox_limit_maps = mysql:/etc/postfix/conf/mysql- virtual_mailbox_limit_maps.cf virtual_mailbox_limit_override = yes virtual_maildir_limit_message = "Your email couldn't be delivered. User's mailbox is full. This is a fatal error." virtual_overquota_bounce = yes content_filter = smtp-amavis:[127.0.0.1]:10024 and here is my master.cf: smtp inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - - 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr 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 fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/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 -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} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes localhost:10025 inet n - n - - smtpd -o content_filter= -o mynetworks=127.0.0.0/8 -o smtpd_recipient_restrictions=permit_mynetworks,reject -o receive_override_options=no_address_mappings There you go: just to let you know that expect that, everything works fine, including the amavis + clamav virus scanner. Axel
From: vidax.net on 5 Feb 2007 19:35 Ok gotcha, I forgot a package, that did the trick. spamassassin is still not working but at last I don't get any error any longer. Thanks anyways
|
Pages: 1 Prev: How to find user with invalid .forward email address? Next: Alias Expanded?? |