Re: Sendmail aliases, wildcards, and mail header manipulations



-----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-----

.



Relevant Pages

  • Limited/Restricted user can install programs.
    ... 2.user XYZ who is also administrator. ... as per the description in the user settings this user XYZ wont be able to install any programs but just use the system. ... Although spybot search & destroy wont launch setup warning that account is restricted. ...
    (microsoft.public.windowsxp.basics)
  • Restricted user can install programs
    ... 2.user XYZ who is also administrator. ... as per the description in the user settings this user XYZ wont be able to install any programs but just use the system. ... Although spybot search & destroy wont launch setup warning that account is restricted. ...
    (microsoft.public.windowsxp.basics)
  • Client SMTP Issue
    ... receive email all in one account, ... XYZ and send from Outlook here. ... and put the ABC server as POP and our server at ...
    (microsoft.public.exchange.clients)
  • Re: Cannot execute new programs
    ... >I have to fix a PC w/ NT4 WKS, ... >then logon as XYZ and try to execute these new programs but I fail; ... >I tried to delete the XYZ account and create it again, ...
    (comp.os.ms-windows.nt.admin.security)
  • Re: Is it necessary to store the entire MD5, etc. hash for validation?
    ... What if Fred learns Mary's password (xyz), changes it to abc, then ... saying that Mary has hijacked his account? ...
    (sci.crypt)