[FreeBSD-users-jp 96202] Re: Freebsd10.1のカーネルnatでsmtpが通らない
you @ dearest.net
you @ dearest.net
2018年 4月 4日 (水) 15:17:44 UTC
こんばんわ
OP25B ではありませんか?以前というのがいつ頃かによるかもしれませんが。
https://www.plala.or.jp/support/manual/mail/plala_mail/submission/
2018年4月4日 22:51 西村良弘 <ilovefd @ topaz.plala.or.jp>:
> 西村といいます。
>
> Freebsd10.1でカーネルPPPoeでNATルータを作り、ppp.confに
>
> nat enable yes
> nat port tcp 192.168.1.31:143 143
> nat port tcp 192.168.1.31:25 25
> nat port udp 192.168.1.31:25 25
> nat port udp 192.168.1.31:143 143
>
> を設定したのですが、インターネット側から内部(192.168.1.0/24)のメールサーバ(192.168.1.31)
> <http://192.168.1.0/24)%E3%81%AE%E3%83%A1%E3%83%BC%E3%83%AB%E3%82%B5%E3%83%BC%E3%83%90(192.168.1.31)>にtelnet
> すると
> 以下のようになりimapは通るのですが,smptが拒絶されます。
>
> Mac:~ ccommail$ telnet hoge.dyndns-wiki.com 143
> Trying 219.165.236.94...
> Connected to hoge.dyndns-wiki.com.
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
> AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> bye
> bye BAD Error in IMAP command received by server.
> bye
> bye BAD Error in IMAP command received by server.
> bye
> * BYE Too many invalid IMAP commands.
> Connection closed by foreign host.
> Mac:~ ccl$ telnet hoge.dyndns-wiki.com 25
> Trying 219.165.236.94...
> telnet: connect to address 219.165.236.94: Connection refused
> telnet: Unable to connect to remote host
> Mac:~ ccommail$
>
> もちろんメールサーバと同じ内部ネット(NATルータの内側)に置いた端末からやると問題なく以下のように接続できました
> Mac:~ ccommail$ telnet 192.168.1.31 143
> Trying 192.168.1.31...
> Connected to 192.168.1.31.
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE
> AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> bye
> bye BAD Error in IMAP command received by server.
> bye
> bye BAD Error in IMAP command received by server.
> bye
> * BYE Too many invalid IMAP commands.
> Connection closed by foreign host.
> Mac:~ ccommail$ telnet 192.168.1.31 25
> Trying 192.168.1.31...
> Connected to 192.168.1.31.
> Escape character is '^]'.
> 220 mail5.iloveyou.com ESMTP
> bye
> 502 5.5.2 Error: command not recognized
> quit
> 221 2.0.0 Bye
> Connection closed by foreign host.
> ccmailnoiMac:~ ccmail$
>
> PPPOEがimapはリダイレクトしていますが、smtpは弾いているようです。
> /etc/rc.confの中でfirewall_type=“open”としています、
> 以前はFBSD4.8で同様のルータを作っていた時はこのような問題はなかったので、お教えいただければ幸いです。
>
>
> _______________________________________________
> freebsd-users-jp @ freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-users-jp
> To unsubscribe, send any mail to "freebsd-users-jp-unsubscribe @ freebsd.org
> "
>
freebsd-users-jp メーリングリストの案内