View Full Version : postfix amavisnew fatal error main.cf
bytemind
March 31st, 2008, 08:48 AM
Hi,
According to https://help.ubuntu.com/community/PostfixAmavisNew
Postfix integration
For postfix integration, you only need to edit /etc/postfix/main.cf and add the following line:
sudo postconf -e "content_filter = smtp-amavis:[127.0.0.1]:10024"
but that gives me an fatal error when i try to reload postix
* Reloading Postfix onfiguration...
postfix: fatal: /etc/postfix/main.cf, line 39: missing '=' after attribute name: "sudo postconf -e "content_filter = smtp-amavis:[127.0.0.1]:10024""
Mr. C.
April 1st, 2008, 12:36 AM
Remove the spaces before and after the = character.
bytemind
April 1st, 2008, 02:41 AM
The line is now
sudo postconf -e "content_filter=smtp-amavis:[127.0.0.1]:10024"
same error
Mr. C.
April 1st, 2008, 11:53 AM
That command works just fine for me:
$ sudo postconf -e "content_filter=smtp-amavis:[127.0.0.1]:10024"
$ grep content_filter /etc/postfix/main.cf
content_filter = smtp-amavis:[127.0.0.1]:10024
Just edit the /etc/postfix/main.cf file manually:
sudo vi /etc/postfix/main.cf
UJukkis
June 19th, 2008, 03:07 PM
I have also same problem. Everything should be OK, but this same stupid error occur all the time.
gytemind: Have you still that problem.
this is my file.
<------cut----
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
sudo postconf -e "content_filter=smtp-amavis:[127.0.0.1]:10024"
-----cut------>
And this is main error message.
<-----cut------
sendmail: fatal: /etc/postfix/main.cf, line 55: missing '=' after attribute name: "sudo postconf -e"content_filter=smtp-amavis:[127.0.0.1]:10024""
-----cut------>
Mr. C.
June 19th, 2008, 03:41 PM
Why does your main.cf file contain the "sudo" command!
sudo postconf -e "content_filter=smtp-amavis:[127.0.0.1]:10024"
Edit this line manually - and make it look like:
content_filter=smtp-amavis:[127.0.0.1]:10024
UJukkis
June 21st, 2008, 08:22 AM
The following line seams to be / work OK, is it OK?
content_filter = amavis:[127.0.0.1]:10024
Why sudo, because of instractions at:
https://help.ubuntu.com/community/PostfixAmavisNew
Chapter: Postfix integration
For postfix integration, you only need to edit /etc/postfix/main.cf and add the following line:
sudo postconf -e "content_filter = smtp-amavis:[127.0.0.1]:10024"
but but is that earlier line OK? No error messages anymore!
Mr. C.
June 21st, 2008, 01:06 PM
The following line seams to be / work OK, is it OK?
content_filter = amavis:[127.0.0.1]:10024
Yes, this is correct.
Why sudo, because of instractions at:
https://help.ubuntu.com/community/PostfixAmavisNew
Chapter: Postfix integration
For postfix integration, you only need to edit /etc/postfix/main.cf and add the following line:
sudo postconf -e "content_filter = smtp-amavis:[127.0.0.1]:10024"
but but is that earlier line OK? No error messages anymore!
That line in the instructions, as a cookbook, is incorrect. Only the content_filter= ... part should be added, and sudo postconf -e is the command that accomplishes that.
It is important that you gain a sense of some understanding of what you are doing, and not blindly follow various HowTo instructions.
I'll see if I can correct the article.
Mr. C.
June 21st, 2008, 01:25 PM
The article has been corrected. Please take a look to see if it is clearer to you.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.