Le 22/05/2011 23:33, Reindl Harald a écrit : > > > Am 22.05.2011 22:22, schrieb mouss: >> Le 21/05/2011 20:19, Reindl Harald a écrit : >>> hi >>> >>> is there any recommended way to implement SRS (Sender Rewrite Scheme) in >>> Postfix >>> to get rid of SPF warnings/blocks for via "virtual_alias_maps" forwarded >>> messages? >>> >> >> if you want to implement SRS, then you'll need to deliver to an external >> program which does that. >> >> <untested elabor...@your.own.risk> >> you could use smtp_generic_maps, something like >> /(.*)@(google\.com)$/ srs-AHBHSRD-$1@$2 >> >> and to get bounces forwarded back to sender, virtual_alias_maps >> /^srs-AHBHSRD-(.*)@(google\.com)$/ $1@$2 >> >> replace AHBHSRD with anything to avoid people abusing your virtual >> alias... but as soon as this is known, you'll be abused. so make this >> dynamic. you could use an sql map to generate a random string... >> </untested> > > Hm, this is not a solution because google is one of thousands examples > this must be generic and triggered by forwarding for gmx.at, gmx.de, web.de > or callit if you want because you can not select which senders are writing > mails to a forwarding-address
that was an example. /(.*)@([^@]*)$/....) would catch any domain. but of course, at your own risk.. > > it amkes me really sad that postfix can not do this native since > more and more domains using SPF in their dns-records and forwarders > are not a bad thing per se spf things have been discussed to death a long long time ago and the subject is considered taboo here. please check the archives. > [snip]