On 27/12/15 22:32, Franta Hanzlík wrote:
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?

That is how I set the DL definition.

I have tried this experiment on two different servers and managed to give the wrong combination of versions.

What I actually have is one box with Fedora 22 and sendmail 8.15.1/8.14.4 and the other with Centos 7.2.1511 and sendmail 8.14.7/8.13.3.

The results are the same on both boxes.

Further experiments show that running sendmail from the command line (eg sendmail -bv no...@benparts.com.au) gives the correct result (delivery to baduser) but when running as a normal daemon I get the reject (again on both boxes).

Any ideas?

Cheers,
Stephen

--
=============================================================================
Stephen Davies Consulting P/L                             Phone: 08-8177 1595
Adelaide, South Australia.                                Mobile:040 304 0583
--
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