when a normal email arrives from outside, /var/log/qmail/qmail-smtpd/current shows:
Code: Select all
@4000000041e5c8ff1ac497ac tcpserver: status: 1/128
@4000000041e5c8ff1ac9e324 tcpserver: pid 3202 from 209.200.129.5
@4000000041e5c8ff1ad52dc4 tcpserver: ok 3202 mail.xxxxxx.com:::ffff:196.x.y.z:25 :::ffff:209.200.129.5::54402
@4000000041e5c90434006e6c X-Qmail-Scanner-1.23st: We have reasons to believe this mail is SPAM
@4000000041e5c90501be115c tcpserver: end 3202 status 0
@4000000041e5c90501be20fc tcpserver: status: 0/128
Code: Select all
@4000000041e5cb510f2cd1ac tcpserver: status: 1/128
@4000000041e5cb510f32f014 tcpserver: pid 3458 from 127.0.0.1
@4000000041e5cb510f47200c tcpserver: ok 3458 localhost:::ffff:127.0.0.1:25 localhost:::ffff:127.0.0.1::32841
@4000000041e5cb511145e1f4 tcpserver: end 3458 status 256
@4000000041e5cb511145f194 tcpserver: status: 0/128
In my /etc/tcp.smtp.cdb i have the rules :
Code: Select all
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"if i add RELAYCLIENT="" to the second line then every user, no matter where they are, could send/relay emails without problems . Of course i don't want that because then qmail-scanner-queue.pl do nothing regarding SPAM because that implies the email is coming from a trusted user.
However, testing tcpserver is ok as you can see:
Code: Select all
mail etc # TCPREMOTEIP="127.0.0.1" tcprulescheck /etc/tcp.smtp.cdb
rule 127.0.0.1:
set environment variable RELAYCLIENT=
set environment variable RBLSMTPD=
set environment variable QMAILQUEUE=/var/qmail/bin/qmail-queue
allow connectionCode: Select all
mail etc # TCPREMOTEIP="schemp" tcprulescheck /etc/tcp.smtp.cdb
rule :
set environment variable QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
allow connectionBut if you guys double check what i wrote above, /var/log/qmail/qmail-smtp/current is saying that tcpserver is receiving the connection from 127.0.0.1
Code: Select all
localhost:::ffff:127.0.0.1:25 localhost:::ffff:127.0.0.1::32841Code: Select all
mail etc # ps aux | grep tcpserver
qmaild 4078 0.0 0.1 2648 808 pty/s1 S 20:25 0:00 /usr/bin/tcpserver -H -P -v -R -x /etc/tcp.smtp.cdb -c 128 -u 201 -g 200 0.0.0.0 smtp /var/qmail/bin/qmail-smtpd mai.xxxxx.com /var/vpopmail/bin/vchkpw /bin/truePlease, any help will be appreciated!

