Tuesday, May 01, 2018

Re: mail and newaliases do not work 6.1 and 6.2 for me

On 1.5.2018 г. 13:23 ч., Marcus MERIGHI wrote:
> openbsd@bgone.net (Ivo Chutkin), 2018.05.01 (Tue) 09:48 (CEST):
>> Hello misc,
>>
>> I have strange problem with mail.
>>
>> I edit /etc/mail/aliases to set well known aliases like:
>>
>> # Well-known aliases -- these should be filled in!
>> root:myname@mydomain.net
>> manager:root
>> dumper:root
>>
>> Then I run newaliases but mail is still delivered to local user.
>>
>> I also run makemap -t aliases /etc/mail/aliases with no effect.
>>
>> Here is mail log:
>>
>> May 1 08:31:24 dns12 smtpd[7943]: smtp-in: New session fdcad19418c8f68d
>> from host dns12.domain.eu [local]
>>
>> May 1 08:31:24 dns12 smtpd[7943]: smtp-in: Accepted message 4c55f050 on
>> session fdcad19418c8f68d: from=<root@dns12.domain.eu>,
>> to=<root@dns12.domain.eu>, size=2250, ndest=1, proto=ESMTP
>>
>> May 1 08:31:24 dns12 smtpd[7943]: smtp-in: Closing session fdcad19418c8f68d
>>
>> May 1 08:31:24 dns12 smtpd[7943]: delivery: Ok for 4c55f0507959f826:
>> from=<root@dns12.domain.eu>, to=<root@dns12.domain.eu>, user=myname,
>> method=mbox, delay=0s, stat=Delivered
>>
>> It happens on 6.1 and 6.2 but not on all machines I run.
>>
>> Am I missing something obvious?
>
> $ doas smtpctl update table aliases
> -- OR --
> $ doas rcctl restart smtpd
>
> assuming that you have the default of
>
> "table aliases file:/etc/mail/aliases"
>
> in your smtpd.conf(5), which you didn't show, grrr!
>
> Marcus
>
Hi Mark and Markus,

Restarting smtpd did it.

I did not know I have to restart smtpd in order to get it working after
change in alias.

Otherwise, smtp.conf is default.

Thanks for the help,
Ivo

No comments:

Post a Comment