This must be one of the most popular questions, but much as I search on the web I dont see any solution.
Ummm..RTFM?
http://www.sendmail.org/faq/section3.html#3.29
A few words of caution:
-> As I see it, this a problem of multidrop combined with multi-rcpt. You might have to put the procmail file for each account that has multidrop.
-> There is a typo on the sendmail.org page. The following on the page:
formail -i "X-Envelope-To: "[EMAIL PROTECTED]
Should read:
formail -i "X-Envelope-To: [EMAIL PROTECTED]"
Notice the quote *after* the $ENV_TO$DOMAIN.
-> This causes sendmail to make multiple copies of the message as you want. Since they are identical copies, except the X-Envelope-To header, any message identification headers are also recplicated...e.g. Message-Id. Depending on the mail usage you have, this might cause problems.
-> The solution works on my sendmail server - your mileage may vary.
Hope that helps.
Note: Not deleting the original text below for the sake of reference.
Situation: I have a sendmail based mailserver for our domain somewhere remote which also doubles up as our smarthost. I have a catchall account for my domain which I am then downloading using fetchmail in multidrop mode. The local server is exim.
Problem: When the same mail is sent to multiple recipients of my domain, the process of communication between the sending MTA and my mail server is totally dependent on the sending MTA.
If the sending MTA is qmail, multiple SMTP conenctions are made for every recipient of the mail - this is sacrilegious to many mailadmins, but thankfully it preserves the envelope recipient and so my sendmail (with a minor header rule) dutifully writes in a delivered-to header.
If it is any other MTA, then to conserve bandwidth/processing they send the mail in a single smtp connection with multiple rcpt. This causes sendmail to avoid writing the delivered-to header because multiple recipients were specified. Fetchmail downloads the mail and tries to send it to the first one in the To: header. Not only is anybody else in the To: list excluded from a copy, but if the first address is not that of a local domain then it bounces.
I have configured exim to send mails one at a time to our mailhost(max_rcpt=1). So atleast our mails deliver properly.
But my question is that is there a way to cajole/coerce sendmail to make multiple copies of the mail locally (according to the envelope recipient) therefore keeping envelope information intact before delivering them?
Regards, Varun Varma, --------------------------------------------- Mindframe Software & Services Pvt. Ltd., A-50, Sector-39, NOIDA, U.P. - 201301, India
http://www.mindsw.com ---------------------------------------------
_______________________________________________ ilugd mailing list [EMAIL PROTECTED] http://frodo.hserus.net/mailman/listinfo/ilugd
