![]() |
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 |
What's the exact error message?
|
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! |
Please make sure you saved the file with Unix linebreaks and not Windows linebreaks.
|
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... |
Now it's in line 13? That's far away from the first error... :confused:
|
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.
|
Are you using Debian Sarge?
|
Yes, I am. I installed part 1 and part 2 using the howto.
|
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 19:58. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.