| Linode Forum https://forum.linode.com/ |
|
| Problem setting up Amavisd-new https://forum.linode.com/viewtopic.php?f=11&t=777 |
Page 1 of 1 |
| Author: | milo [ Wed Mar 31, 2004 12:42 am ] |
| Post subject: | Problem setting up Amavisd-new |
Hey all! I'm setting up amavisd-new on my Linode as part of an anti-virus package. The instructions say to add the following to Postfix's main.cf file: smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - y - - 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 When I do this and excecute a "postfix reload" command, I get the following error: postfix: fatal: /etc/postfix/main.cf, line 30: missing '=' after attribute name: "smtp-amavis unix - - y - 2 smtp" sushi:/etc/postfix# I've seen the exact same instructions in a couple of different places (for reference, the ones I'm reading at the moment can be found here Anyone know what I'm doing wrong? |
|
| Author: | asura [ Wed Mar 31, 2004 12:47 am ] |
| Post subject: | |
In Main.cf I have: content_filter = smtp-amavis:[127.0.0.1]:10024 And that's the only reference to amavis. In Master.cf I have: smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200 |
|
| Author: | asura [ Wed Mar 31, 2004 12:49 am ] |
| Post subject: | |
This is also in master.cf: 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 |
|
| Author: | Bill Clinton [ Wed Mar 31, 2004 7:11 am ] |
| Post subject: | |
The following might be of interest ... /etc/postfix/main.cf Code: content_filter = smtp-amavis:[127.0.0.1]:10024 /etc/postfix/master.cf Code: 127.0.0.1:10025 inet n - n - - smtpd The following are some things to watch out for in /etc/amavisd.conf Code: @local_domains_acl = ( ".$mydomain", '.myhost.com ); |
|
| Author: | milo [ Wed Mar 31, 2004 1:28 pm ] |
| Post subject: | Thanks! |
I can't believe I repeated misread "master.cf" as "main.cf". |
|
| Author: | milo [ Wed Mar 31, 2004 5:18 pm ] |
| Post subject: | Oops another problem |
Well I've installed things and thought everything was OK. Unfortunately Postfix isn't starting. A peek at /var/log/mail.info reveals this line: Mar 31 12:45:28 sushi postfix/master[427]: fatal: /etc/postfix/master.cf: line 108: bad transport type: smtp_data_done_timeout=1200 I've checked several sites (including the amavisd-new site) and this line should be correct. Can anyone offer some insight into this? |
|
| Author: | asura [ Thu Apr 01, 2004 9:57 am ] |
| Post subject: | |
Is it -o smtp_data_done_timeout=1200? |
|
| Author: | milo [ Thu Apr 01, 2004 4:50 pm ] |
| Post subject: | Still no love |
asura wrote: Is it
-o smtp_data_done_timeout=1200? Yep. That's the line. The part's that I've added to master.cf are: smtp-amavis unix - - y - 2 smtp -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - y - - 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 |
|
| Author: | asura [ Thu Apr 01, 2004 6:11 pm ] |
| Post subject: | |
Hrm. Check your /var/log/maillog (or whatever filename you use) to see what postfix is doing. Doing a quick google, one of things mentioned is to make sure amavisd is running. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|