On Tue, Oct 01, 2002 at 11:46:45AM +0800, Marvin Pascual wrote:
> My second and last question is, how can I filter the received e-mails
> from the taxpayers and from bounced e-mails (considering the e-mail
> address is wrong or doesn't exists) to the taxpayer's respective BIR
> regional and district office? There is only one e-mail address/account
> (probably it would be [EMAIL PROTECTED]) for the outgoing e-mails but if
> the [EMAIL PROTECTED] receives e-mail from the taxpayers or receives
> bounced e-mails, it will be forwarded to the taxpayers' respective BIR
> regional/district offices' e-mail address/account to answer if there's
> an inquiry or to call the attention of the taxpayer if it was a
> bounced e-mail to provide the correct e-mail address.
When you want to do mass-mailing, the best thing to do is see how the
Big Guys do it right. No, not the spammers, since they do it all wrong.
It's the mailing list management software we need to look at. I do not
know how others do it, but with Mailman:
- the "To" header does not necessarily have to be munged, it can be
[EMAIL PROTECTED] or whatever policy dictates,
- the email is sent with a different envelope sender address. With
Postfix's /usr/sbin/sendmail compatibility wrapper you do this
using the '-f sender' parameter (see manual page for more
details). Mailman sets this to [EMAIL PROTECTED]
- the Errors-To header is further defined, with the same
[EMAIL PROTECTED] address.
What happens is that email comes from whatever is defined in the "To"
header, but the Return-Path, Sender and Errors-To headers all point to
the admin address, and that's where any decent mailer-daemon should send
bounce-back reports.
> Please forgive my ignorance, I just don't have any idea with Postfix
> and MTA in general. Please give me some advice.
If you're willing to learn Python, you may actually want to look at the
source code of Mailman. AFAIK it's fairly MTA-neutral, and Python's
support for database backends is pretty good and easy enough to learn
and use. Of course you can use any other scripting language, as well. :)
--> Jijo
--
Federico Sevilla III : http://jijo.free.net.ph
Network Administrator : The Leather Collection, Inc.
GnuPG Key ID : 0x93B746BE
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]