Almost there. I can send local mail via OpenSMTPD. I am shifting through some syntax issues, made tougher by the recent updates.
I found this recent thread:
Quote:
On Mon, Jan 21, 2013 at 01:31:15PM +0400, Nike wrote:
> I have a FreeBSD 9.1 x86-64 + opensmtpd-201301191220 with /usr/local/etc/mail/smtpd.conf:
>
> listen on lo0
> expire 3d
>
> table aliases db:/etc/mail/aliases.db
> table secrets db:/etc/mail/secrets.db
>
> accept for local alias <aliases> deliver to mbox
> accept for any relay via tls://smtp.gmail.com:587 auth <secrets>
>
> Get an error message when sending in log (/var/log/maillog) :
> Jan 21 13:19:46 gate smtpd[90258]: smtp-in: New session 00000000ca68bc4a from host 0 <at> localhost [local]
> Jan 21 13:19:46 gate smtpd[90258]: smtp-in: Accepted message 8086bcde on session 00000000ca68bc4a:
from=<root@...>, size=209, nrcpts=1, proto=ESMTP
> Jan 21 13:19:46 gate smtpd[90258]: smtp-in: Closing session 00000000ca68bc4a
> Jan 21 13:19:46 gate smtpd[90255]: smtp-out: Error on route [] <-> IPv6:2a00:1450:4010:c03::6c
(la-in-x6c.1e100.net): Connection failed: No route to host
>
> Please, tell me the correct settings for gmail.com.
>
This line:
accept for any relay via tls://smtp.gmail.com:587 auth <secrets>
Should read as:
accept for any relay via tls+auth://label@...:587 auth <secrets>
With your secrets map containing a line:
label user:password
Try and tell us how it goes
--
Gilles Chehade
|
Earthlink uses the entire email address as the userid: myusername<at>earthlink.net. Instead of secrets I named my auth file as elink_auth and it contains the line
Code:
label myusername<at>earthlink.net:mypasswd
I ran makemap on this to generate a *.db file
My
etc/mail/smtpd.conf
Code:
# $OpenBSD: smtpd.conf,v 1.6 2013/01/26 09:38:25 gilles Exp $
# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.
# To accept external mail, replace with: listen on all
#
listen on lo0
listen on ral0
table aliases db:/etc/mail/aliases.db
table elink_auth db:/etc/mail/elink_auth.db
# Uncomment the following to accept external mail for domain "example.org"
#
accept from any for domain "earthlink.net" alias <aliases> deliver to mbox
accept for local alias <aliases> deliver to mbox
accept for any relay via \
tls+auth://label@smtpauth.earthlink.net:587 \
auth <elink_auth>
For outbound messages to
myname@earthlink.net, I still get
Code:
Peng$ send-mail: command
failed: 550 Invalid recipient