Hi, >> # echo example.com > /etc/mail/mailname > > I've tried it but it does not solve the problem: > > $ mail -v user > <<< 220 host.example.com ESMTP OpenSMTPD > >>> EHLO localhost > <<< 250-host.example.com Hello localhost [local], pleased to meet you > <<< 250-8BITMIME > <<< 250-ENHANCEDSTATUSCODES > <<< 250-SIZE 36700160 > <<< 250 HELP > >>> MAIL FROM:<[email protected]> > <<< 250 2.0.0: Ok > >>> RCPT TO:<[email protected]> > <<< 250 2.1.5 Destination address valid: Recipient ok > >>> DATA > <<< 354 Enter mail, end with "." on a line by itself > >>> . > <<< 250 2.0.0: 1dbf7b05 Message accepted for delivery > >>> QUIT > <<< 221 2.0.0: Bye > > Nov 1 22:08:35 host smtpd[31333]: 0000000000000000 mda event=delivery > evpid=1dbf7b05c357c219 from=<[email protected]> > to=<[email protected]> user=user method=lmtp delay=1m30s result=TempFail > stat=Error ("smtpd: RCPT TO rejected: 550 5.1.1 <[email protected]> User > doesn't exist: [email protected]")
Can you post your full configuration? Because it should work immediately. See: # smtpd -h version: OpenSMTPD 6.0.0 usage: smtpd [-dFhnv] [-D macro=value] [-f file] [-P system] [-T trace] # cat /etc/mail/mailname sw3 # mail -v root Subject: test1 fdsa EOT <<< 220 sw3 ESMTP OpenSMTPD >>> EHLO localhost <<< 250-sw3 Hello localhost [local], pleased to meet you <<< 250-8BITMIME <<< 250-ENHANCEDSTATUSCODES <<< 250-SIZE 36700160 <<< 250 HELP >>> MAIL FROM:<null@sw3> <<< 250 2.0.0: Ok >>> RCPT TO:<root@sw3> <<< 250 2.1.5 Destination address valid: Recipient ok >>> DATA <<< 354 Enter mail, end with "." on a line by itself >>> . <<< 250 2.0.0: d847a29a Message accepted for delivery >>> QUIT <<< 221 2.0.0: Bye # echo test.example.com > /etc/mail/mailname # mail -v root Subject: test2 fdsa EOT <<< 220 sw3 ESMTP OpenSMTPD >>> EHLO localhost <<< 250-sw3 Hello localhost [local], pleased to meet you <<< 250-8BITMIME <<< 250-ENHANCEDSTATUSCODES <<< 250-SIZE 36700160 <<< 250 HELP >>> MAIL FROM:<[email protected]> <<< 250 2.0.0: Ok >>> RCPT TO:<[email protected]> <<< 550 Invalid recipient send-mail: command failed: 550 Invalid recipient # echo foo.bar > /etc/mail/mailname # mail -v root Subject: test3 fdsa EOT <<< 220 sw3 ESMTP OpenSMTPD >>> EHLO localhost <<< 250-sw3 Hello localhost [local], pleased to meet you <<< 250-8BITMIME <<< 250-ENHANCEDSTATUSCODES <<< 250-SIZE 36700160 <<< 250 HELP >>> MAIL FROM:<[email protected]> <<< 250 2.0.0: Ok >>> RCPT TO:<[email protected]> <<< 550 Invalid recipient send-mail: command failed: 550 Invalid recipient # echo sw3 > /etc/mail/mailname # mail -v root Subject: test-ok fdsa EOT <<< 220 sw3 ESMTP OpenSMTPD >>> EHLO localhost <<< 250-sw3 Hello localhost [local], pleased to meet you <<< 250-8BITMIME <<< 250-ENHANCEDSTATUSCODES <<< 250-SIZE 36700160 <<< 250 HELP >>> MAIL FROM:<null@sw3> <<< 250 2.0.0: Ok >>> RCPT TO:<root@sw3> <<< 250 2.1.5 Destination address valid: Recipient ok >>> DATA <<< 354 Enter mail, end with "." on a line by itself >>> . <<< 250 2.0.0: d0bfadd9 Message accepted for delivery >>> QUIT <<< 221 2.0.0: Bye It's not even necessary to restart smtpd after changes to /etc/mail/mailname. -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
