The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 postfix + amavis
Author: cbrace 
Date:   03-01-07 16:15

I've installed amavis-new, spamassassin, and clamav via ports. I've also added "content_filter = smtp-amavis:[127.0.0.1]:10024" to postfix/main.cf

However, when I try to send a test mail, I get an error in the maillog:

Jan 3 16:37:24 juno postfix/master[23491]: daemon started -- version 2.3.5, configuration /usr/local/etc/postfix
Jan 3 16:47:57 juno postfix/pickup[23492]: 0614E67EAD: uid=500 from=<colin>
Jan 3 16:47:57 juno postfix/cleanup[23549]: 0614E67EAD: message-id=<20070103154757.0614E67EAD@juno.lim.nl>
Jan 3 16:47:57 juno postfix/qmgr[23493]: 0614E67EAD: from=<colin@juno.lim.nl>, size=311, nrcpt=1 (queue active)
Jan 3 16:47:57 juno postfix/qmgr[23493]: warning: connect to transport smtp-amavis: No such file or directory
Jan 3 16:48:57 juno postfix/qmgr[23493]: warning: connect to transport smtp-amavis: No such file or directory

and the message remains queued in the maillog. amavis appears active:

$ telnet localhost 10024
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 [127.0.0.1] ESMTP amavisd-new service ready

What I am missing in this equation? do spamassassin and clamav have to explicitly started? I don't see rc.d scripts anywhere nor executables under those names...

Thanks.

Reply To This Message
 
 Re: postfix + amavis
Author: Dan 
Date:   03-01-07 16:24

cbrace wrote:

> I've installed amavis-new, spamassassin, and clamav via ports.
> I've also added "content_filter =
> smtp-amavis:[127.0.0.1]:10024" to postfix/main.cf

I have this in main.cf:

# AMaVIs hooks
content_filter = smtp-amavis:[127.0.0.1]:10024
max_use = 10

Did you add anything to main.cf? I have this:

smtp-amavis unix - - n - 2 smtp
-o smtp_data_done_timeout=1200
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - 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 smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000





>
> However, when I try to send a test mail, I get an error in the
> maillog:
>
> Jan 3 16:37:24 juno postfix/master[23491]: daemon started --
> version 2.3.5, configuration /usr/local/etc/postfix
> Jan 3 16:47:57 juno postfix/pickup[23492]: 0614E67EAD: uid=500
> from=<colin>
> Jan 3 16:47:57 juno postfix/cleanup[23549]: 0614E67EAD:
> message-id=<20070103154757.0614E67EAD@juno.lim.nl>
> Jan 3 16:47:57 juno postfix/qmgr[23493]: 0614E67EAD:
> from=<colin@juno.lim.nl>, size=311, nrcpt=1 (queue active)
> Jan 3 16:47:57 juno postfix/qmgr[23493]: warning: connect to
> transport smtp-amavis: No such file or directory
> Jan 3 16:48:57 juno postfix/qmgr[23493]: warning: connect to
> transport smtp-amavis: No such file or directory
>
> and the message remains queued in the maillog. amavis appears
> active:
>
> $ telnet localhost 10024
> Trying ::1...
> telnet: connect to address ::1: Connection refused
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 [127.0.0.1] ESMTP amavisd-new service ready
>
> What I am missing in this equation? do spamassassin and clamav
> have to explicitly started? I don't see rc.d scripts anywhere
> nor executables under those names...

Does this help?

$ ls *clam*
clamav-clamd clamav-freshclam
$ pkg_info | grep clam
clamav-0.88.7 Command line virus scanner written entirely in C
$

--
Webmaster

Reply To This Message
 
 Re: postfix + amavis
Author: cbrace 
Date:   04-01-07 03:07

I have it working now after I realized that the smtp-amavis unix - - n - 2 smtp [...] commands need to go in *master.cf*, not main.cf.

One question: do you have to run spamd as a daemon or does amavis invoke it automatically?

Thanks.

--
Colin Brace
Amsterdam

Post Edited (03-01-07 22:22)

Reply To This Message
 
 Re: postfix + amavis
Author: Dan 
Date:   04-01-07 04:49

cbrace wrote:

> One question: do you have to run spamd as a daemon or does
> amavis invoke it automatically?

I think amavis runs it for you. I think you mean spamassassin.

--
Webmaster

Reply To This Message
 
 Re: postfix + amavis
Author: Jim Trigg 
Date:   19-01-07 19:23

Spamassassin calls its client-server daemon spamd, as distinct from OpenBSD's spamd.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org