I'm not sure if I understand your goals completely, but perhaps this is
worth a try. I'm not sure if "recipient" can be used with a "relay",
but if it doesn't work maybe it will spark another option.
listen on lo0 tag LOCAL
listen on egress etc,etc tag
listen on submission etc,etc
accept from any for domain <vdomains> recipient <bob> deliver to maildir
accept tagged LOCAL for any relay
accept from any for domain <vdomains> recipient <tom> relay via
tls+auth://[email protected]:587 auth <secrets>
||
|# echo 'gmail [email protected]:yourpassword' > /etc/mail/secrets
# chmod 640 /etc/mail/secrets
# chown root:_smtpd /etc/mail/secrets
|
On 07/09/15 17:35, Tom Keene wrote:
I also tried delivering to mbox & exactly the same issue was present...
T
On Thu, Jul 9, 2015 at 11:30 PM, Tom Keene <[email protected]> wrote:
Hi,
Replacing:
accept from source { localhost 109.237.26.21/24 } for any relay
With:
accept for any relay
Attempts to deliver to @gmail.com though the email never gets through as its
gets bounced so it does look like the following line is the issue:
accept from source { localhost 109.237.26.21/24 } for any relay
Tom
On Thu, 9 Jul 2015 9:45 pm Herbert J. Skuhra <[email protected]> wrote:
On Thu, Jul 09, 2015 at 01:03:24PM -0700, Seth wrote:
On Thu, 09 Jul 2015 11:58:38 -0700, Herbert J. Skuhra
<[email protected]>
wrote:
CONFIG
pki domain.tld certificate "/etc/smtpd/tls/smtpd.crt"
pki domain.tld key "/etc/smtpd/tls/smtpd.key"
table vdoms "/etc/smtpd/vdoms"
table vusers "/etc/smtpd/vusers"
listen on eth0 hostname domain.tld
accept from any for domain <vdoms> virtual <vusers> deliver to maildir
"/home/tom/mails"
accept from source { localhost 109.237.26.21/24 } for any relay
I think the above line is the problem. It should work if you add
216.119.104.83!
Hm. That last line is meant to allow the local system and other email
clients on the specified subnet to be able to send outbound mail through
the
server. It's not intended for other mail servers on the Internet, the
prior
statement should handle that traffic.
So this is a bug? (Not sure if I understand you correctly.)
Changing 'accept from source...' to 'accept for any relay' solves the
"received
invalid command: "RCPT TO:xxxx" for me. I am running 5.7.1p1 on FreeBSD.
--
Herbert
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]