Re: Sendmail aliases, wildcards, and mail header manipulations
- From: Carl Byington <carl@xxxxxxxxxxxxxxx>
- Date: Thu, 12 Jun 2008 16:27:51 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 12 Jun 2008 15:18:30 -0700, Gil wrote:
To solve this problem we would like to use an email address such as
site1234.xyzincservice@xxxxxxxxxxxxxx when we register an account with a
given ISP for XYZ, Inc. When we receive the email we would like to strip
everything before the fist dot and then send the email to the
xyzincservice@xxxxxxxxxxxxxx distribution list prepending the striped
portion to the Subject header of the email. So that all of the members of
the distribution list (all employees of our company) can easily identify
and act on the site specific email they received.
Use xyzincservice+site1234@xxxxxxxxxxxxxx for the email address. Then in
virtusertable have a line like:
xyzincservice+*@ourcompany.com someacct+%2
where someacct is a local unix account. Then, assuming you are using
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')
dnl The '-t' option will retry delivery if user is over quota
you can have ~/someacct/.procmailrc include a section like
SUB=`formail -c -xSubject:`
SND=`formail -rzxTo:`
:0 fwh
| formail -I"Subject: $1 $SUB"
:0
! -f "$SND" actualmailinglist@xxxxxxxxxxxxxx
Then the +detail from the addresses that you hand out for the various
accounts at XYZ Inc. end up as part of the subject lines before they get
delivered to the actual mailing list.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFIUbDiL6j7milTFsERAmA6AJ47PL6Gbpn7mN2F1/cZu0wElVA6TwCeO9el
KciSlNTNG4A4yX0F3qoYM4s=
=/oIK
-----END PGP SIGNATURE-----
.
- Follow-Ups:
- References:
- Prev by Date: Re: maillog contains spam -- no from=<sender@domain.com>
- Next by Date: Re: Sendmail aliases, wildcards, and mail header manipulations
- Previous by thread: Sendmail aliases, wildcards, and mail header manipulations
- Next by thread: Re: Sendmail aliases, wildcards, and mail header manipulations
- Index(es):
Relevant Pages
|