Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

sendmail virtusertable/aliases/mailertable routing question

39 views
Skip to first unread message

Gregg Hughes

unread,
Mar 27, 2017, 4:40:35 PM3/27/17
to
Good afternoon, all!

I have a small problem with a sendmail request. I have a mail domain that has all its mail processed by a customer program. The mail topology is that the MX record points to a perimeter sendmail server. That server has a mailertable entry that simply forward mail to the mail domain to an internal server that has the custom program.

Now I want to trap mail returned to no_reply or do_not_reply @ special mail domain so we can filter for mail that a customer might need. First I set up /etc/aliases on the internal servers to do that, but the mail simply got sent to the customer program. Same with /etc/mail/virtusertable - mail went right through sendmail and into the custom program.

I thought about trying aliases or virtusertable on the perimeter server, but the mailertable on those tells sendmail to smtp mail for the special domain right to the internal servers, so I don't see where I can filter for the no_reply addresses anywhere.

Any thoughts on why or how sendmail can filter for these before they get sent to the custom program? The program is listed in sendmail.mc as

Miscmailer, P=path_to_custom_program, F=DFMPlms,
A=path_to_customer_program $u

The same appears in sendmail.cf. Dug around for a "miscmailer" variable for sendmail.cf and sendmail.mc and came up with nothing. Is there such a thing, or do I need to dive into source files?

Thanks for looking!

Gregg


Andrzej Adam Filip

unread,
Mar 27, 2017, 4:56:41 PM3/27/17
to
Gregg Hughes <greg...@gmail.com> wrote:
> I have a small problem with a sendmail request. I have a mail domain
> that has all its mail processed by a customer program. The mail
> topology is that the MX record points to a perimeter sendmail
> server. That server has a mailertable entry that simply forward mail
> to the mail domain to an internal server that has the custom program.
> [...]
> I thought about trying aliases or virtusertable on the perimeter
> server, but the mailertable on those tells sendmail to smtp mail for
> the special domain right to the internal servers, so I don't see where
> I can filter for the no_reply addresses anywhere.
> [...]

Add the domain to $={VirtHost} class/lists to make virtusertable process it.
[ virtusertable processes only local email domains by default ].
Sendmail daemon will require restart or sending HUP signal after
modifications of the file.
Read *very carefully* about side effects before using $={VirtHost}
related macros provided by sendmail.org.

sendmail.mc :

LOCAL_CONFIG
# keep list of non local email domains processed by virtusertable
# in /etc/mail/virtual-domains file
F{VirtHost}/etc/mail/virtual-domains

--
[Andrew] Andrzej A. Filip - https://www.linkedin.com/in/andfil

Gregg Hughes

unread,
Mar 28, 2017, 3:01:50 PM3/28/17
to
Hello, Andrzej!

Thanks for the check on this. As I understand this, I'll need to extend the capabilities of virtusertable. That's something our team will work on to see if we can do this without breaking something else.

Meanwhile, can you or anyone shed some light on the section reading "F=DFMPlms". These look like flags to me, but I haven't found any authoritative source to decode and interpret these flags.

Thanks!

Gregg

Martin Neitzel

unread,
Mar 29, 2017, 1:39:02 AM3/29/17
to
> Meanwhile, can you or anyone shed some light on the section reading
> "F=DFMPlms". These look like flags to me, but I haven't found any
> authoritative source to decode and interpret these flags.

*Everything* you find in a .cf is covered in the
"Sendmail Installation and Operation Guide", usually
just called "op.me" after its troff source file.

Everything of

Miscmailer, P=path_to_custom_program, F=DFMPlms,
A=path_to_customer_program $u

is covered by section "5.4. M -- Define Mailer".
You are correct: "F=..." is short for "Flags=", and the long
list of key letters is in that section, too.

(The only other reference document you'll ever need
id the cf/README, decribing the macros and mechanisms
you can use in a .m4 file.)

Martin
0 new messages