Relaying Not Allowed
807574Dec 15 2005 — edited Feb 11 2020Hi everyone.
I currently have 2 servers (192.168.1.182, 192.168.1.184) running on clustering which is active and passive. The MTA is on clcustering IP (192.168.1.186), which is now active on one of the servers (192.168.1.182).
I set up amavis & clamd for virus scanning, where amavis & clamd are deployed at 192.168.1.182. Mails are forwarded from tcp_local and tcp_intranet to tcp_scan for scanning.
I tested out the configuration by sending mails from local users to local users as well as to yahoo mail users. Internal mails worked fine, however mails to external domains such as yahoo gave problems:
16-Dec-2005 11:29:10.40 tcp_local J 0 rfc822; fattycrab@yahoo.com 550 5.7.1 Relaying not allowed: fattycrab@yahoo.com
I know this similar topic has been going about here for quite some time, and have tried which ever ways posted, but still giving me the error above.
===========================================================
My imta.cnf looks something like this:
part I:
! tcp_scan
[192.168.1.182] $E$R$U%[192.168.1.182]@tcp_scan-daemon
!
part II:
!
! tcp_local
tcp_local smtp mx single_sys remotehost inner switchchannel identnonenumeric subdirs 20 maxjobs 7 pool SMTP_POOL maytlsserver
maysaslserver saslswitchchannel tcp_auth missingrecipientpolicy 0 aliasdetourhost tcp_scan-daemon
tcp-daemon
!
! tcp_intranet
tcp_intranet smtp mx single_sys subdirs 20 dequeue_removeroute maxjobs 7 pool SMTP_POOL maytlsserver allowswitchchannel saslswitchchannel tcp_auth missingrecipientpolicy 4 aliasdetourhost tcp_scan-daemon
tcp_intranet-daemon
!
! tcp_scan
tcp_scan smtp single_sys subdirs 20 dequeue_removeroute maxjobs 7 pool SMTP_POOL daemon [127.0.0.1] port 10024
tcp_scan-daemon
===========================================================
Mappings file is as follow:
! MTA mappings file
! for access control and other table lookups
PORT_ACCESS
*|*|*|*|* $C$|INTERNAL_IP;$3|$Y$E
* $YEXTERNAL
INTERNAL_IP
$(192.168.1.186/32) $Y
127.0.0.1 $Y
* $N
ORIG_SEND_ACCESS
tcp_local|*|tcp_local|* $N$D30|Relaying$ not$ allowed
tcp_*|*|native|* $N
tcp_*|*|hold|* $N
tcp_*|*|pipe|* $N
tcp_*|*|ims-ms|* $N
CONVERSIONS
IN-CHAN=tcp_local;OUT-CHAN=tcp_intranet;Convert No
IN-CHAN=tcp_*;OUT-CHAN=*;CONVERT Yes,Channel=tcp_scan
===========================================================
Added this in dispatcher.cnf:
[SERVICE=SMTP-SCAN]
DEBUG=-1
PARAMETER=CHANNEL=tcp_scan
PORT=10025
IMAGE=IMTA_BIN:tcp_smtp_server
LOGFILE=IMTA_LOG:tcp_scan-server.log
STACKSIZE=2048000
===========================================================
imsimta ver shows:
Sun Java(tm) System Messaging Server 6.2-4.03 (built Sep 22 2005)
libimta.so 6.2-4.03 (built 04:37:42, Sep 22 2005)
SunOS pluto 5.9 Generic_118558-13 sun4u sparc SUNW,Sun-Fire-V240 Solaris
Kindly advice. Thanks.