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


namely i cannot send mail to [email protected] .

is 'forward or something'  needed ?
i try examples of https://www.opensmtpd.org/smtpd.conf.5.html , but fail .

in postfix , i can send mail to [email protected] but cannot recieve mail from [email protected].
reverse condition .









On 2015e9407f24f% 04:58, Gilles Chehade wrote:
On Fri, Jul 24, 2015 at 02:09:53AM +0900, Tuyosi Takesima wrote:
thanks for Denis

|Tell me if I'm wrong but you don't listen on port 25 or 465.
your advise is great !

/etc/mail/smtpd.conf      is rewriten .
listen on lo0
listen on em0 port 25    <-----------------to recieve mail from gmx
listen on em0 port 465  <-----------------to recieve mail from gmail
table aliases db:/etc/mail/aliases.db

accept from any         for domain "aoiXXX.mydns.jp"   alias <aliases>
deliver to maildir
accept from any         for domain "aoiXXX.mydns.jp"
deliver to maildir

accept for local                                        alias <aliases>
deliver to maildir
accept for local
deliver to maildir

reject from any for any
------------------------------------------------------------------------------------------

then  i can get mails from [email protected] & [email protected] .
but    i cannot send mails to [email protected] & [email protected] .

but this is great progress .

Jumping in to put an end to this thread:

Let's look at what you want to do:

       send mail to @gmail.com & @gmx.de

Then, let's check if your ruleset has any rule matching these:

         accept from any for domain "aoiXXX.mydns.jp" [...] - no
         accept from any for domain "aoiXXX.mydns.jp" [...] - no
         accept for local [...] - no
         accept for local [...] - no
         reject from any for any - yes

Your ruleset doesn't allow for your own users to send mail to anything
but your local domains.

You need a rule that states:

     accept from local for any relay

It needs to be at the bottom of your config, right where you added this
reject rule (which serves no purpose btw since this is the default).




--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to