i rewrite smtpd.conf by auth-optional
this one allow to mail to & from gmail.com .
-----by https://www.opensmtpd.org/smtpd.conf.5.html
If *auth-optional* is specified, then SMTPAUTH is not required to
establish an SMTP transaction. This is only useful to let a listener
accept incoming mail from untrusted senders and outgoing mail from
authenticated users in situations where it is not possible to listen on
the submission port.
Both *auth* and *auth-optional* accept an optional table as a parameter.
When provided, credentials are looked up in this table. Credentials
format is described in table(5).
-------
how about this ?
pki mail.aoiyuma.mydns.jp certificate "/etc/ssl/mail.aoiyuma.mydns.jp.crt"
pki mail.aoiyuma.mydns.jp key "/etc/ssl/private/mail.aoiyuma.mydns.jp.key"
listen on lo0
listen on em0 port 25 tls pki mail.aoiyuma.mydns.jp auth-optional
listen on em0 port 465 tls pki mail.aoiyuma.mydns.jp auth-optional
listen on em0 port 587 tls pki mail.aoiyuma.mydns.jp auth-optional
table aliases db:/etc/mail/aliases.db
accept from any for domain "aoiyuma.mydns.jp" alias <aliases>
deliver to maildir
accept from any for domain "aoiyuma.mydns.jp"
deliver to maildir
accept for local alias <aliases>
deliver to maildir
accept for local
deliver to maildir
mynetwork1 = "6.2.6.2/32"
mynetwork2 = "114.22.25.247/32"
accept from source $mynetwork1 for any relay
accept from source $mynetwork2 for any relay
accept from local for any relay