Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Mar 31, 2004 12:42 am 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
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?


Top
   
 Post subject:
PostPosted: Wed Mar 31, 2004 12:47 am 
Offline
Senior Member
User avatar

Joined: Sat Jan 03, 2004 7:34 pm
Posts: 71
Website: http://www.darkforestmud.net
AOL: asura02003
Location: Oregon
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


Top
   
 Post subject:
PostPosted: Wed Mar 31, 2004 12:49 am 
Offline
Senior Member
User avatar

Joined: Sat Jan 03, 2004 7:34 pm
Posts: 71
Website: http://www.darkforestmud.net
AOL: asura02003
Location: Oregon
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


Top
   
 Post subject:
PostPosted: Wed Mar 31, 2004 7:11 am 
Offline
Senior Member
User avatar

Joined: Sun Nov 23, 2003 1:40 pm
Posts: 79
Website: http://www.whitehouse.gov/history/presidents/bc42.html
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
    -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


The following are some things to watch out for in /etc/amavisd.conf
Code:
@local_domains_acl = ( ".$mydomain", '.myhost.com );
#  The above prevents from the scanning of *out-going* email (if you have some out-look users, you want to have your out-going mail scanned, haha

$warnvirusrecip = 1;
$warnbannedrecip = 1;
#  You may wish to have your users be notified at least when they are send emails with viruses

$sa_tag_level_deflt  = 3.0;
$sa_tag2_level_deflt = 5.0;
$sa_kill_level_deflt = 100;
$sa_spam_subject_tag = '***SPAM*** ';
#  Some nice spamassassin settings.  Especially useful is the last, where you get the email with the ***SPAM*** thing in the subject.  It sticks out like a sore thumb and can easily be avoided. (If you want to do something similar with emails that have viruses, just ask)


Top
   
 Post subject: Thanks!
PostPosted: Wed Mar 31, 2004 1:28 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
I can't believe I repeated misread "master.cf" as "main.cf". :)


Top
   
 Post subject: Oops another problem
PostPosted: Wed Mar 31, 2004 5:18 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
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?


Top
   
 Post subject:
PostPosted: Thu Apr 01, 2004 9:57 am 
Offline
Senior Member
User avatar

Joined: Sat Jan 03, 2004 7:34 pm
Posts: 71
Website: http://www.darkforestmud.net
AOL: asura02003
Location: Oregon
Is it

-o smtp_data_done_timeout=1200?


Top
   
 Post subject: Still no love
PostPosted: Thu Apr 01, 2004 4:50 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
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


Top
   
 Post subject:
PostPosted: Thu Apr 01, 2004 6:11 pm 
Offline
Senior Member
User avatar

Joined: Sat Jan 03, 2004 7:34 pm
Posts: 71
Website: http://www.darkforestmud.net
AOL: asura02003
Location: Oregon
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group