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

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

>> status=sent (250 mail from IP 193.104.1.241 soft failed sender ID check.
>> Please ensure this IP is authorized to send mail on behalf of [google.com])
>> ___________________
>>
>> currently most forwarders are implmented this way, and yes the 
>> round(deliver_to)
>> is needed because numeric targets are physical usermappings from dbmail and
>> the limitation at the end is to make sure that multi-forwardings are handeled
>> native by dbmail
>>
>> virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-forwarders.cf
>>
>> user     = dbmailro
>> password = *****
>> dbname   = dbmail
>> hosts    = unix:/var/lib/mysql/mysql.sock inet:127.0.0.1:3307
>> query    = select deliver_to from dbmail_aliases where alias='%u@%d' and 
>> round(deliver_to)=0 and (select count(*)
>> from dbmail_aliases where alias='%u@%d')=1;

-- 

Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

http://www.thelounge.net/signature.asc.what.htm

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to