Hello.
I am encountering 513 Relaying denied. error for the RAV antivirus that I
installed recently. It wants to send out some report to rav but it is
getting 513 Relaying denied.
As I understand, if I list localhost in smtpaccess files and do
makesmtpaccess, it should relay any mail from the localhost, so I should not
be getting the above error. When I tried to do a relay over a telnet session
as follows, I do get 513 Relaying denied.
[root@www /root]# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
220 www.gosoudan.com ESMTP
HELO gosoudan.com
250-www.gosoudan.com Ok.
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
250-STARTTLS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
MAIL FROM:<ro...@gosoudan.com>
250 Ok.
RCPT TO:hoge...@yahoo.co.jp
513 Relaying denied.
maillog at the time looks like as follows:
May 22 11:43:08 www courieresmtpd: started,ip=[::ffff:127.0.0.1]
May 22 11:43:45 www courieresmtpd:
error,relay=::ffff:127.0.0.1,from=<root@gosou
dan.com>,to=<nat_...@yahoo.co.jp>: 513 Relaying denied.
Followings are the smtpaccess configurations:
[root@www smtpaccess]# ls -l /etc/courier/smtpaccess
total 12
-rw-r--r-- 1 courier courier 806 May 22 11:11 default
-rw-r--r-- 1 root root 191 May 22 11:37 gosoudan
-rw-rw-r-- 1 courier courier 173 May 10 09:01 webadmin
[root@www smtpaccess]# cat default
# Copyright 1998 - 1999 Double Precision, Inc. See COPYING for
# distribution information.
#
# Default access policies for courieresmtpd
#
# By default, enable relaying for localhost.
127.0.0.1 allow,RELAYCLIENT
# Also, enable relaying for 10.0.0.0/8 and 192.168.0.0/16
10 allow,RELAYCLIENT
192.168 allow,RELAYCLIENT
[root@www smtpaccess]# cat gosoudan
211.10.15.199 allow,RELAYCLIENT
211.10.20.225 allow,RELAYCLIENT
Actual log for the rav is as follows:
May 22 11:03:01 www courieresmtpd:
error,relay=::ffff:211.10.20.225,from=<RA...@www.gosoudan.com>,to=<ravmails@ra
vantivirus.com>: 513 Relaying denied.
May 22 11:03:17 www ravmd[3855]: WARNING: Cannot send a warning e-mail.
Any help is much appreciated.