Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17781

Sendmail + domain-level aliasing + automatic masquerading?

$
0
0

I've currently set up domain-level aliasing using sendmail+virtusertable so that all mail (that doesn't match a better virtuser) ends up in a catch-all account (yes, I understand the security implications of catch-all accounts). The only difficulty I'm having now is that the reply address is the real catch-all account name, whereas I'd like it to have the reply address set to the incoming mail. So for example, if someone mails catchme@mydomain.tld (which redirects to myuser@mydomain.tld), I'd like to have any outgoing replies come from catchme and not from myuser. (The use case is that I want to use the pretend addresses as "tags", both for statistical and security purposes).

I'm aware that this sort of thing is possible with genericstable, but it only works with statically defined maps. Does anyone here have knowledge or experience with setting up a sendmail so that the From: is automatically set as the alias delivered to?

(The only workaround I can think of is to have the catchall account pipe to a script which sets up a genericstable entry, and then passes the email through, though I'd like to see if this can be done properly).

submitted by name_censored_
[link][3 comments]

Viewing all articles
Browse latest Browse all 17781

Trending Articles