- - PR -
qmailで外部ドメインにメールが送れない
1
投稿者 | 投稿内容 |
---|---|
|
投稿日時: 2005-11-09 18:48
qmailで外部ドメインにメールを送りたいのですが、tcp.smtp.cdbが無視されているのか、
rcpthostsに記述してあるドメイン以外にメールを送ることができません。 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 何か解決法をご存知の方がいらっしゃいましたら、ご教授ください。 Debian(sarge)にapt-getでqmail、ucspi-tcp、checkpwをインストール。 /var/qmail/control/rcpthostsの内容は -------------------- localhost xxx.yyy.zzz.jp yyy.zzz.jp .yyy.zzz.jp -------------------- xxx : ホスト名(xxx.yyy.zzz.jp : FQDN) yyy.zzz.jp : ドメイン名 /etc/tcp.smtpの内容は -------------------- 127.0.0.1:allow,RELAYCLIENT="" aaa.bbb.ccc.ddd:allow,RELAYCLIENT="" :allow -------------------- aaa.bbb.ccc.ddd : クライアントのIPアドレス # /usr/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp で/etc/tcp.smtp.cdbを作成。 起動スクリプトは -------------------- alias_empty="./Maildir/" # This uses qmail prefered ~/Maildir/ directory logger="splogger qmail 2" # facility mail == 2 pop_logger="splogger pop3d" rblmsg= rblsmtpd= # # End of configuration # test -x /usr/sbin/qmail-start || exit 0 test -x /usr/sbin/qmail-send || exit 0 case "$1" in start) echo -n "Starting mail-transfer agent: qmail" $rblmsg sh -c "start-stop-daemon --start --quiet --user qmails \\ --exec /usr/sbin/qmail-send \\ --startas /usr/sbin/qmail-start -- \\"$alias_empty\\" $logger &" # prevent denial-of-service attacks, with ulimit ulimit -v 16384 sh -c "start-stop-daemon --start --quiet --user qmaild \\ --pidfile /var/run/tcpserver_smtpd.pid --make-pidfile \\ --exec /usr/bin/tcpserver -- -v -R -H \\ -u `id -u qmaild` -g `id -g nobody` -x /etc/tcp.smtp.cdb 0 smtp \\ $rblsmtpd /usr/sbin/qmail-smtpd 2>&1 \\ | $logger &" # Uncomment the following lines to automatically start the pop3 server sh -c "start-stop-daemon --start --quiet --user root \\ --pidfile /var/run/tcpserver_pop3d.pid --make-pidfile \\ --exec /usr/bin/tcpserver -- -R -H -v \\ 0 pop-3 /usr/sbin/qmail-popup サーバのFQDN \\ /usr/bin/checkapoppw /usr/sbin/qmail-pop3d Maildir 2>&1 \\ | $pop_logger pop3d &" echo "." ;; stop) 以下省略 -------------------- よろしくお願い致します。 |
1