On Tue, 24 Nov 2015 14:38:43 +1030
Stephen Davies <sdav...@sdc.com.au> wrote:

> I am trying to change my sendmail configuration to deliver all "user unknown" 
> emails to a specific account (baduser).
> I added the DL definition to sendmail.mc and generated test.cf.
> Then I tested this new config using:
> 
> echo who | sendmail -v -Ctest.cf noone
> 
> and the email was correctly delivered to the defined account.
> 
> I then renamed test.cf to sendmail.cf (in /etc/mail) and retested with:
> 
> echo what | sendmail -Csendmail.cf noone
> 
> and again the email was delivered to the baduser account.
> 
> Happy with this, I then restarted sendmail (via systemctl) and sent yet 
> another email to an invalid account.
> 
> Instead of the email being delivered to baduser, I received a 550 5.1.1 user 
> unknown reject email.
> 
> What have I missed here.
> 
> (Fedora 22 & sendmail 8.14.7/8.13.3)

What You mean by "DL definition"?
IMO what You want is configured by defining macro "LUSER_RELAY", as:
define(`LUSER_RELAY', `local:baduser')

And, it seems as You are using old sendmail versions with F22:
v8.14.7 was semewhere in F18/F19, and sendmail v8.13.3 in Fedora 4 (ten
years ago!). It has any reason?
-- 
Franta Hanzlik
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Reply via email to