This is a discussion on Re: [AMaViS-user] Problems with spam_quarantine_to in mysql database within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Bart, > This is the mysql layout that i'm using: ... > I'm using several policies now, and 1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Bart,
> This is the mysql layout that i'm using: ... > I'm using several policies now, and 1 of them is to send spam to > "spam@$mydomain", by filling in the spam_quarantine_to in mysql > accordingly. > > But, amavis sends that string to postfix without changing anything, so it > doesn't substitute $mydomain for the recpt. domain.. amavisd-new doesn't substitute Perl variables in results from SQL lookups. Actually, it doesn't substitute them anywhere, the substitutions in amavisd.conf file are done by Perl itself while interpreting the config file, without amavisd even realizing it. > Does anybody know how i could solve this, and allow only people using a > particular policy to have their quarantine to be mailed to them, and all > the rest just locally? For now, only local quarantine works :( Supply your fully qualified domain name in SQL table explicitly, if you really want that. Sending quarantine to a mailbox was devised to make possible remote site-wide or subdomain-wide quarantine mailboxes. Quarantined mail is not supposed to be directly viewable by recipients without removing X-Envelope-To headers first (which compromise sender's privacy). If your intention is to provide each user with its own quarantine, the correct approach is to direct spam mail to dedicated user's folder, either by the use of spam tagging in the header, or by adding address extensions (see: http://www.ijs.si/software/amavisd/a...s.html#addrext ) Mark Mark ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|