On Fri, Jul 24, 2015 at 05:44:51AM +0900, Tuyosi Takesima wrote:
> thanks
>
> |Your ruleset doesn't allow for your own users to send mail to anything
> |but your local domains.
>
> i rewrite /etc/mail/smtpd.conf
>
> -----------------------
> listen on lo0
> listen on em0 port 25
> listen on em0 port 465
> listen on em0 port 587
> table aliases db:/etc/mail/aliases.db
> accept from any for domain "aoi.mydns.jp" alias <aliases> deliver
> to maildir
> accept from any for domain "aoi.mydns.jp" deliver to maildir
> accept for local alias <aliases>
> deliver to maildir
> accept for local
> deliver to maildir
>
> accept from local for any relay <----
> reject from any for any
>
>
>
> but thunderbird says
> ---------------------
> An error occurred while sending mail. The mail server responded:
> Invalid recipient.
> Please check the message recipient "[email protected]" and try again
>
>
> maillog says
> -------------------
> Jul 24 05:26:58 aoi smtpd[15988]: smtp-in: New session 19cd5791a1e1f339 from
> host p.akita.ocn.ne.jp [6.2.236.211]
> Jul 24 05:26:59 aoi smtpd[15988]: smtp-in: Failed command on session
> 19cd5791a1e1f339: "RCPT TO:<[email protected]>" => 550 Invalid recipient
> Jul 24 05:27:18 aoi smtpd[15988]: smtp-in: Closing session 19cd5791a1e1f339
>
Again, you need to check what you're doing against your ruleset:
> Jul 24 05:26:58 aoi smtpd[15988]: smtp-in: New session 19cd5791a1e1f339 from
> host p.akita.ocn.ne.jp [6.2.236.211]
does any of your rules allow 6.2.236.211 to send mail to gmail ?
accept from any for domain "aoi.mydns.jp" [...] - no
accept from any for domain "aoi.mydns.jp" [...] - no
accept for local [...] - no
accept for local [...] - no
accept from local for any relay <---- 6.2.236.211 is not local
reject from any for any <--- this is still unneeded
so either you add a rule to accept from source 6.2.236.211
or you configure your listener & thunderbird to authenticate your user
--
Gilles Chehade
https://www.poolp.org @poolpOrg
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]