Tattwam

Q: Manual Page query

Hi All,

 

I was searching for Manual Page Entry for OS X El Capitan 10.11 for OQMGR(8)

(Ref. https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPag es/man8/oqmgr.8.html )

 

Please guide me to find it out as I need to change following parameters:

1. qmgr_message_active_limit (20000)

2. maximal_queue_lifetime (5d)


Do I need to add/edit above parameters in mail.cf or somewhere else?

 

Any help will be appreciated.

Thanks in advance

Mac mini, OS X El Capitan (10.11.1)

Posted on May 20, 2016 1:23 AM

Close

Q: Manual Page query

  • All replies
  • Helpful answers

  • by pterobyte,Helpful

    pterobyte pterobyte May 26, 2016 8:46 AM in response to Tattwam
    Level 6 (11,101 points)
    Servers Enterprise
    May 26, 2016 8:46 AM in response to Tattwam

    Yes, 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.

  • by Tattwam,

    Tattwam Tattwam Jun 7, 2016 4:24 AM in response to pterobyte
    Level 1 (5 points)
    Servers Enterprise
    Jun 7, 2016 4:24 AM in response to pterobyte

    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.



  • by pterobyte,Helpful

    pterobyte pterobyte Jun 8, 2016 3:56 AM in response to Tattwam
    Level 6 (11,101 points)
    Servers Enterprise
    Jun 8, 2016 3:56 AM in response to Tattwam

    Did 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:

    https://topicdesk.com/faqs/why-do-postconf-n-and-postfix-reload-produce-unexpect ed-output-on-os-x-server-5/

  • by Tattwam,

    Tattwam Tattwam Jun 8, 2016 4:05 AM in response to pterobyte
    Level 1 (5 points)
    Servers Enterprise
    Jun 8, 2016 4:05 AM in response to pterobyte

    pterobyte wrote:

     

    Did you modify the correct main.cf file?

    1. /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:

    1. 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?

  • by pterobyte,

    pterobyte pterobyte Jun 10, 2016 3:01 AM in response to Tattwam
    Level 6 (11,101 points)
    Servers Enterprise
    Jun 10, 2016 3:01 AM in response to Tattwam

    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