Spam anti-relay

General Spam Control

General Configuration

MX settings and recipient domains

To setup to accept mail for backup domain

  • edit /etc/postfix/main.cf
  • add additional domain to relay_domains = statement
  • confirm config syntax with postfix check
  • reload config file with postfix reload

Queues

*A. Recent versions of Postfix include an option to the postsuper command to clean out queued messages by queue ID. To delete a message with a queue ID of ABCDEF, for example, you would do: postsuper -d ABCDEF

If you have a large number of messages to remove, create a file with one queue ID per line and then run:

postsuper -d - < file

smtpd_client_restrictions = hash:/etc/postfix/accesss, reject_rbl_clients relays.ordb.org
smtpd_client_restrictions = permit_mynetworks
/etc/postfix/main.cf:
        delay_warning_time = 4h

This is usually safe to do while Postfix is running, but there is a small chance of deleting new incoming mail if it's assigned the same queue ID before the bad message is deleted. From the Postfix FAQ at:

http://www.postfix.org/faq.html#deleting

The [possible conflict in message removal] scenario goes like this:

The Postfix queue manager deletes the file that postsuper was supposed to delete, because Postfix was finished with the message.

New mail arrives, and the new message is given the same queue ID as the message that postsuper was supposed to delete. The probability for reusing a deleted queue ID is about 1 in 2^15 (the number of different microsecond values that the system clock can distinguish).

postsuper deletes the new message file, instead of the old file that should have been deleted.


computer

computer/postfixnotes.txt ยท Last modified: by 127.0.0.1