gjaber
asked on
Limit connectio delivery to a mx server
Hello,
several mx servers are limiting connection from one especific IP Addr. How can I configure the sendmail to delivery just "n" messages or make "n" simultaneous connection to one host in the same time?
In the Postfix I can do it using: default_destination_concur rency_limi t parameter...
several mx servers are limiting connection from one especific IP Addr. How can I configure the sendmail to delivery just "n" messages or make "n" simultaneous connection to one host in the same time?
In the Postfix I can do it using: default_destination_concur
ASKER
I have resolved this problem running in the same server Sendmail to receive and Postfix to delivery :-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
confHOST_STATUS_DIRECTORY
[undefined] If set, host status is kept on disk between sendmail runs in the named directory tree. This need not be a full pathname, in which case it is interpreted relative to the queue directory.
confSINGLE_THREAD_DELIVERY
[False] If this option and the HostStatusDirectory option are both set, single thread deliveries to other hosts. That is, don't allow any two sendmails on this host to connect simultaneously to any other single host. This can slow down delivery in some cases, in particular since a cached but otherwise idle connection to a host will prevent other sendmails from connecting to the other host.
And the functionality could be enabled by adding the following to sendmail.mc:
define(`confHOST_STATUS_DI
define(`confSINGLE_THREAD_
You'll need to create the host status directory:
mkdir /var/spool/host-status
chown root.mail /var/spool/host-status
chmod 0700 /var/spool/host-status
The ownership of the host status directory could be different on your system. Just make it the same as /var/spool/mqueue.