Control SMTP_MAILER_MAXMSGS per domain or host?

Control SMTP_MAILER_MAXMSGS per domain or host?

am 06.12.2007 03:48:07 von HRileyBSG

All,

We need to be able to control the number of messages that get sent in
a connection to remote servers. I figure this should be possible by
something in the access db, but can't figure out how. Can anyone
assist?

Thanks.

Re: Control SMTP_MAILER_MAXMSGS per domain or host?

am 06.12.2007 22:52:23 von per

In article

HRileyBSG@gmail.com writes:
>
>We need to be able to control the number of messages that get sent in
>a connection to remote servers. I figure this should be possible by
>something in the access db, but can't figure out how. Can anyone
>assist?

Not in access db, but you can use mailertable to choose different
mailers based on the destination. If you only need one or two values you
can set SMTP_MAILER_MAXMSGS and/or RELAY_MAILER_MAXMSGS and choose
'esmtp' or 'relay' in mailertable, otherwise you'll have to define
additional SMTP mailers in your .mc, with different m= fields.

--Per Hedeland
per@hedeland.org

Re: Control SMTP_MAILER_MAXMSGS per domain or host?

am 07.12.2007 17:46:00 von HRileyBSG

On Dec 6, 3:52 pm, p...@hedeland.org (Per Hedeland) wrote:
> In article
>
>
> HRiley...@gmail.com writes:
>
> >We need to be able to control the number of messages that get sent in
> >a connection to remote servers. I figure this should be possible by
> >something in the access db, but can't figure out how. Can anyone
> >assist?
>
> Not in access db, but you can use mailertable to choose different
> mailers based on the destination. If you only need one or two values you
> can set SMTP_MAILER_MAXMSGS and/or RELAY_MAILER_MAXMSGS and choose
> 'esmtp' or 'relay' in mailertable, otherwise you'll have to define
> additional SMTP mailers in your .mc, with different m= fields.

Per,

Thanks for the reply. I found this page:

http://www.brandonhutchinson.com/Creating_a_new_sendmail_mai ler.html

which is almost what I need. Thinking more about this, I'd like to be
able to implement this based on the recipient MX host, rather than the
recipient. domain. The MX host in question is a third party mail
hosting service and we'd like to be able to implement this without
having to keep track of which recipient domain has that hosting
service.

From the page above, adding the new mailer in the sendmail.mc is
straightforward, but making the change in the mailertable is less so.
Given what I've read so far, it seems like the LHS in the mailertable
is for the recipient address domain, not the recipient MX host domain
and the RHS is for the mailer and the redirected host domain. Is this
correct?

If that's the case, then we have to implement a record in the
mailertable for each recipient address domain, like so:

1.recipient.address.domain
esmtp_mailer_maxmsgs_20:mailhost.service.domain
2.recipient.address.domain
esmtp_mailer_maxmsgs_20:mailhost.service.domain
3.recipient.address.domain
esmtp_mailer_maxmsgs_20:mailhost.service.domain
4.recipient.address.domain
esmtp_mailer_maxmsgs_20:mailhost.service.domain

Is that correct?

Thanks again for the assistance.