Since /etc/myname changed to a different one from virtual domain name used in OpenSMTPd mlmmj mailing lists work well, aliases work as it should be too.
But I can't send mail to a users with 'real' mailboxes in the same domain served by OpenSMTPd where aliased users present also. For instance: [email protected] can send to [email protected] alias2@ alias3@ but [email protected] can't send to [email protected] user3@ user4@ and other users with 'real' mailboxes in the same domain. 'An error occurred while sending mail. The mail server responded: ,5.2.4 Mailing list expansion problem., Please check the message recipient "[email protected]" and try again' #tail -n 20 /var/log/maillog smtpd[6323] smtp failed-command address=12.34.56.78 host=12.34.56.78 command="RCPT TO:<[email protected]>" result="524 5.2.4 Mailing list expansion problem" smtpd[6323] smtp failed-command address=12.34.56.78 host=12.34.56.78 command="RCPT TO:<[email protected]>" result="524 5.2.4 Mailing list expansion problem" ... Outgoing mail sends well. Incoming mail receives well too. opensmtpd works with dovecot imap together. Any advises will be highly appreciated. On 8/19/2018 12:57 PM, Denis wrote: > Solved. The problem was with /etc/myname which has the same name as one > of virtual domains used for smtpd. > > On 8/19/2018 12:56 AM, Denis wrote: >> Hi there, >> >> After "upgrade" OpenSMTPd to 6.4.0 (smtpd.conf syntax has been >> corrected) from OpenBSD -current having trouble with aliased addresses. >> >> If I tried to send mail to alias address I receive error from mail program: >> >> 'An error occurred while sending mail. The mail server responded: >> ,5.2.4 Mailing list expansion problem., Please check the message >> recipient "[email protected]" and try again' >> >> mlmmj does not send emails also by OSMTPd 6.4.0. I have only one list >> named 'all' for broadcast messages. So if I sent to [email protected] I >> receive nothing. >> >> Previously, OpenSMTPD 6.0 from OpenBSD 6.3 sources look for 'aliases' >> from 'aliases.db' and 'virtuals' from PostgreSQL database. All works >> smoothly as it should be. >> >> To exclude possible PGSQL issues for 'virtuals' I've added to smtpd.conf >> lookup for 'virtuals' from plain text file: >> >> ... >> table aliases db:/etc/mail/aliases.db >> table virtuals file:/etc/mail/virtuals >> # table virtuals postgres:/etc/mail/smtpd-pgsql.conf >> ... >> >> In all cases (when 'table virtuals file:/..' or 'table virtuals >> postgres:/..' or using mlmmj, or mail to aliased address) I have the >> same debug messages by running smtpd 6.4.0 in table debug mode: >> >> # smtpd -dv -T virtuals -T lookup >> >> ... >> 77205978ce2bed68 smtp connected address=local host=domain.tld >> lookup: check "local" as NETADDR in table static:<localhost> -> found >> lookup: check "domain.tld" as DOMAIN in table static:<localnames> -> found >> lookup: lookup "support" as ALIAS in table db:aliases -> "myaddr" >> debug: aliases_get: returned 1 aliases >> lookup: lookup "myaddr" as ALIAS in table db:aliases -> "[email protected]" >> debug: aliases_get: returned 1 aliases >> lookup: check "local" as NETADDR in table static:<localhost> -> found >> lookup: check "domain.tld" as DOMAIN in table static:<localnames> -> found >> lookup: lookup "myaddr" as ALIAS in table db:aliases -> "[email protected]" >> debug: aliases_get: returned 1 aliases >> lookup: check "local" as NETADDR in table static:<localhost> -> found >> lookup: check "domain.tld" as DOMAIN in table static:<localnames> -> found >> lookup: lookup "myaddr" as ALIAS in table db:aliases -> "[email protected]" >> debug: aliases_get: returned 1 aliases >> lookup: check "local" as NETADDR in table static:<localhost> -> found >> lookup: check "domain.tld" as DOMAIN in table static:<localnames> -> found >> lookup: lookup "myaddr" as ALIAS in table db:aliases -> "[email protected]" >> debug: aliases_get: returned 1 aliases >> lookup: check "local" as NETADDR in table static:<localhost> -> found >> lookup: check "domain.tld" as DOMAIN in table static:<localnames> -> found >> 77205978ce2bed68 smtp failed-command address=local host=domain.tld >> command="RCPT TO:<[email protected]> " result="524 5.2.4 Mailing list >> expansion problem" >> debug: control -> client: pipe closed >> debug: clearing p=client, fd=11, pid=0 >> 77205978ce2bed68 smtp disconnected address=local host=domain.tld >> reason=disconnect >> ... >> >> What can be wrong? >> >> Denis >> >> >> >> >> > -- You received this mail because you are subscribed to [email protected] To unsubscribe, send a mail to: [email protected]
