HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Amavid.conf in "Virutal Users and Domains with Postfix, Courier and MySQL (+SMTP (http://www.howtoforge.com/forums/showthread.php?t=2976)

gurneyzap 8th March 2006 17:04

Amavid.conf in "Virutal Users and Domains with Postfix, Courier and MySQL (+SMTP
 
I'm using the howto "Virtual Users and Domains with Postfix, Courier and MySQL (+SMTP-AUTH, Quota, SpamAssassin, ClamAV)

I've copy and pasted the amavisd.conf from the howto and when issuing the command /etc/init.d/amavis restart I get an error near ) I've put a remark next to where the message says the error is occurring. I've included a few lines before and after the error. Thanks for any help.


$localpart_is_case_sensitive = 0; # (default is false)

$blacklist_sender_re = new_RE(
qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryo u|greatcasino)@'i,
qr'^(investments|lose_weight_today|market\.alert|m oney2you|MyGreenCard)@'i,
qr'^(new\.tld\.registry|opt-out|opt-in|optin|saveonl|smoking2002k)@'i,
qr'^(specialoffer|specialoffers|stockalert|stopsno ring|wantsome)@'i,
qr'^(workathome|yesitsfree|your_friend|greatoffers )@'i,
qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i,
); {ERROR IS HERE}

map { $whitelist_sender{lc($_)}=1 } (qw(
nobody@cert.org
owner-alert@iss.net
slashdot@slashdot.org
bugtraq@securityfocus.com
NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
security-alerts@linuxsecurity.com
amavis-user-admin@lists.sourceforge.net
razor-users-admin@lists.sourceforge.net

falko 8th March 2006 20:41

What's the exact error message?

gurneyzap 8th March 2006 21:05

The error message is:

mail2:/etc/amavis# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: Error in config file /etc/amavis/amavisd.conf: syntax error at /etc/amavis/amavisd.conf line 205, near ")"
(failed).

Thanks!

falko 8th March 2006 21:35

Please make sure you saved the file with Unix linebreaks and not Windows linebreaks.

gurneyzap 8th March 2006 21:51

Using Putty, I did a copy and paste from the Howto. The line numbers are different as after doing the paste the first time, I spent the time in vi doing some formating for readability. Without the cleanup, I still get the same error.

mail2:/etc/amavis# /etc/init.d/amavis restart
Stopping amavisd: (not running).
Starting amavisd: Error in config file /etc/amavis/amavisd.conf: syntax error at /etc/amavis/amavisd.conf line 13, near ")"
(failed).
mail2:/etc/amavis#

Thanks...

falko 9th March 2006 10:25

Now it's in line 13? That's far away from the first error... :confused:

gurneyzap 9th March 2006 16:30

I should have sent the line number in error using the original file and not the one I formatted. I formatted for readability so that I could easily read and try to learn what was going on since I'm a newbie.

falko 9th March 2006 23:05

Are you using Debian Sarge?

gurneyzap 10th March 2006 12:31

Yes, I am. I installed part 1 and part 2 using the howto.

falko 10th March 2006 15:52

And you're sure you followed it as close as possible? Because it is working for me exactly as outlined in the tutorial. After I wrote the tutorial I followed it again to verify there are no errors in it.


All times are GMT +2. The time now is 01:08.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.