Benjamin Donnachie wrote:
At the moment, I use shadow passwords for cyrus-imapd authentication and
I would like sendmail to reject any message for which the recipient does
not have an account on the server.
This is complicated because I use "plussed" addresses with cyrus-imapd;
if I enable the "w" sendmail mailer option, then it rejects plussed
address messages - since that account doesn't exist. However, if I
disable the preserve_local_plus_detail option in sendmail it performs
the local account check correctly but then doesn't pass on the folder
detail (ie the section after, and including, the +)...
Is there anyway to instruct sendmail to remove the plus detail for the
local account check but to use it when passing the message to cyrus (via
dspam in my case)? I've scoured the sendmail docs and done many google
searches but can't find an answer, and concluded that a cyrus-imapd
admin would be the best person to know! :-)
I intend to migrate over to postfix and ldap in a few months - but would
prefer to solve this problem now as my mail queue is filling up with
bounces to fake addresses in response to spam messages to non-existent
accounts.
*TEST IT BEFORE USING*
I guess to can get it via:
1) adding F=5 to cyrusv2 mailer options and *REMOVING* to F=w flag
2) using FEATURE(`preserve_local_plus_detail')
3) using error mailer in LUSER_RELAY
define(`LUSER_RELAY',`error:nouser User unknown')
You can test it using:
sendmail -C /etc/mail/sendmail-test.cf -bv [EMAIL PROTECTED]
Let me know if it works as expected, I had no time to test it myself.
WARNING: ~login/.forward files *WILL NOT* be processed
How it is supposed to work:
* flag F=5 will turn on processing of rule set file
* checks done by F=w flag will be done by "error" luser relay in rule set 5
* preserve_local_plus_detail will stop sendmail from stripping +detail in
rule set 5
--
[en: Andrew] Andrzej Adam Filip : [EMAIL PROTECTED] : [EMAIL PROTECTED]
http://anfi.homeunix.net/ Netcraft Site Rank: 514007
All that is necessary for the triumph of evil is that good men do nothing
-- Edmund Burke, 18th century
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html