Hi Bernd!

Bernd Wurst schrieb:
> Looks really cool.
> I did not read the SRS-specs carefully, but wasn't there some case when you 
> have to shorten the envelope address a bit and so you must have a database 
> where rewritten addresses are mapped to real addresses?

I guess you are talking about the case where an already forwarded mail 
is forwarded again.

The shortening that is done in that case, is the thing why there are 
addresses starting with SRS0 and others starting with SRS1.

Addresses starting with SRS0 are generated by the first forwarding 
mailserver that does SRS. While all later servers will detect that they 
are not the first SRS server by the address starting with SRS0 or SRS1 
and will use another address mapping that results in the SRS1 addresses.

The shortening in that case just removed information, that is not 
necessary for delivering mail bounces. As SRS bounces are not forwarded 
the full chain of mailserver back, but only by using the first and last 
SRS mailserver, that forwarded the message. So it's also only the 
information of the first and last mailserver, that has to be kept in the 
return address.

> Reading the given page, I don't see any kind of database, so you have no 
> chance to shorten anything without loosing data.

Only data that is not needed anymore is removed from the reply address.

I also want to note, that I did not implement the SRS logic myself, but 
I am using an already existing library (libsrs2). Therefore I hope, that 
the logic of the address mapping is correct, as it should already been 
tested by other users of the library.

> What happens to really long addresses after rewriting?

See the graphic on http://www.openspf.org/SRS at the bottom on the left 
side. You will find an example there how rewriting an already rewritten 
address works.


Matthias

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to