Re: Sendmail Help..
Hi Sven,
Sven Göran <syket@hotmail.com> wrote :
> I need some help with sendmail.. I am trying to make it write out
> some type of information in the message to who the message is for.
> I thought I could use the "for <user@example.com>" part in the
> message..
There is no "for" part in SMTP afaik.
There is a "To" in it. Do you think of this?
> But it seems that it ignores to write this out if there is more
> then one recipient. Can I somehow make sendmail to write out the
> "for <user@example.com>" even tho there is more then one
> recipient..? I tryed MODIFY_MAILER_FLAGS(`LOCAL', `-m')dnl, but it
> did not remedy my problem. Anyone who has a solution to this?
This won't work to my knowledge, because if you send out an eMail to
several "To"-Recipients any mailserver will splitt this message up
into several ones all cointaining one single line in the
"Envelope-To".
Example:
From: blah
To: abc,123,xyz
will be sent as
Message 01
Envelope-From: blah (if not rewritten by the mailserver)
Envelope-To: abc
Message 02
Envelope-From: blah (if not rewritten by the mailserver)
Envelope-To: 123
Message 03
Envelope-From: blah (if not rewritten by the mailserver)
Envelope-To: xyz
There are other constructions possible like
From: blah@host
To: abc@thathost, 123@otherhost, xyz@thathost
These will be sent as
Message 01
Envelope-From: blah@host (if not rewritten by the mailserver)
Envelope-To: abc@thathost, xyz@thathost
Message 02
Envelope-From: blah@host (if not rewritten by the mailserver)
Envelope-To: 123@otherhost
These are only two messages, because mailservers are intelligent
enough (normally) to see if one message is for different recipients
maintained by _one_ mailserver (as read though dns lookups).
So, please: What are you trying to target exactly?
bis dahin - kind regards
Martin Mewes
--
Member of the Webmin Translation Team
http://www.webmin.com/ http://webmin.mamemu.de/
Debian, SuSE, Securityfocus and Webmin - Mailinglist mboxes
http://www.mewes.tv/mbox/
Reply to: