-
All replies
-
Helpful answers
-
May 26, 2016 8:46 AM in response to Tattwamby pterobyte,★HelpfulYes, you need to add those to main.cf and they are documented here:
http://www.postfix.org/postconf.5.html
However, reducing the size of the queue will not reduce your spam intake or fix a compromised server. It will only limit the amount of mails allowed into the queue at any given moment. This includes spam, backscatter and legit mail.
-
Jun 7, 2016 4:24 AM in response to pterobyteby Tattwam,Hello
I added below lines at the end of main.cf file. But no changes were shown at output of postconf -d.
qmgr_message_active_limit = 2000
maximal_queue_lifetime = 2d
Please let me know where the issue is.
-
Jun 8, 2016 3:56 AM in response to Tattwamby pterobyte,★HelpfulDid you modify the correct main.cf file?
/Library/Server/Mail/Config/postfix/main.cf
You need to use postconf -n and not -d. Also point postconf to the correct directory:
postconf -n -c /Library/Server/Mail/Config/postfix
See also here:
-
Jun 8, 2016 4:05 AM in response to pterobyteby Tattwam,pterobyte wrote:
Did you modify the correct main.cf file?
- /Library/Server/Mail/Config/postfix/main.cf /Library/Server/Mail/Config/postfix/main.cf
Yes, I have modified the same File.
You need to use postconf -n and not -d. Also point postconf to the correct directory:
- postconf -n -c /Library/Server/Mail/Config/postfix postconf -n -c /Library/Server/Mail/Config/postfix
Yes, above command gives wanted output.
Thank you for the answer.
I have following two extra questions:
1. I am having few hundred emails in mail queue which are not getting deleted by firing : sudo postsuper -d ALL
2. I want to add specific domain to blacklist (.nl) in spamassassin. How to add it?
-
Jun 10, 2016 3:01 AM in response to Tattwamby pterobyte,1. sudo postsuper -d ALL should delete them. If there are many it can take a very very long time. If you still think they should have been deleted already, look at the permissions. Maybe they are broken and postfix has no access to the queue.
2. See here: Creating a spam whitelist on Server 5.1.5