| >> HOME >> Linux Tips MENU >> Linux Tips : Inbound/Outbound Port 25 Blocking(IP25B/OP25B)対策 |
 |
|
|
|
|
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# vi /etc/postfix/main.cf
:
:
# INTERNET OR INTRANET
# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
relayhost = [XXX.ocn.ne.jp]
:
:
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# vi /etc/postfix/isp_passwd
XXX.ocn.ne.jp isp_mail_acount:isp_mail_password
|
|
|
| |
[root@linux ~]# postmap /etc/postfix/isp_passwd
|
|
|
| |
[root@linux ~]# vi /etc/postfix/main.cf
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/isp_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_mechanism_filter = LOGIN,PLAIN,CRAM-MD5
|
|
|
| |
|
|
| |
[root@linux ~]# telnet XXX.ocn.ne.jp 25
Trying 255.255.255.255...
Connected to XXX.ocn.ne.jp (255.255.255.255).
Escape character is '^]'.
220 XXX.ocn.ne.jp ESMTP Postfix
EHLO XXX.ocn.ne.jp
250-XXX.ocn.ne.jp
250-SIZE 10485760
250-AUTH
250 AUTH=
QUIT
221 Bye
Connection closed by foreign host.
|
|
|
| |
|
|
| |
[root@linux ~]# service postfix restart
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# vi /etc/postfix/master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
submission inet n - n - - smtpd
-o smtpd_etrn_restrictions=reject
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
:
:
|
|
|
| |
|
|
| |
|
|
| |
|
|
 |
|
 |
 |