Если делаю файл /var/qmail/control/recipients
содержащий все почтовые адреса сервера,
то внутри и во вне почта ходит, а вовнуть не приходит ничего...Если делаю файл /var/qmail/control/badrcptto
типа:
*
!user1@domain.ru
!user2#domain.ru
и т.д.
то внутри почта не ходит и вовнуть не приходит ничего...
ни черта не понял...
Желание собственно отражать почту для несуществующих пользователей на стадии коннекта к SMTP.
конфиги ниже:
qmail-spamcontrol
установлен из портов
связка qmail-spamcontrol+vpopmail+qmail-scanner+clamav+spamassasin
tcp.smtp
127.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
195.16.57.100:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
192.168.0.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue"
:allow,TARPITCOUNT="5",TARPITDELAY="5",HELOCHECK="M",MFDNSCHECK="",BADMIMETYPE="",BADLOADERTYPE="M",QMAILQUEUE="
/usr/local/bin/qmail-scanner-queue.pl"
Запуск:
/usr/local/bin/bash -cf '/usr/local/bin/tcpserver -c 40 -HRDQ -x /etc/tcp.smtp.cdb -u 82 -g 81 0 smtp /usr/local/bin/rblsmtpd rblsmtpd -b -t 10 -c -r bl.spamcop.net /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger tcpserver 3 &'
/var/qmail/bin/qmail-showctl:
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 509.
subdirectory split: 23.
user ids: 81, 82, 83, 0, 84, 85, 86, 87.
group ids: 81, 82.
authsenders: (Default.) No authenticated SMTP senders.
badhelo: (Default.) Any HELO/EHLO greeting is allowed.
badloadertypes:
Mi5kb not accepted as loader type.
MzIuZ not accepted as loader type.
MyLmR not accepted as loader type.
MyLkR not accepted as loader type.
badloadertypes.cdb: Modified recently enough; hopefully up to date.
badmimetypes:
TVqQAAMAA not accepted as MIME type.
TVpQAAIAA not accepted as MIME type.
TVpAALQAc not accepted as MIME type.
TVpyAXkAX not accepted as MIME type.
TVrmAU4AA not accepted as MIME type.
TVrhARwAk not accepted as MIME type.
TVoFAQUAA not accepted as MIME type.
TVoAAAQAA not accepted as MIME type.
TVoIARMAA not accepted as MIME type.
TVouARsAA not accepted as MIME type.
TVrQAT8AA not accepted as MIME type.
VFZxUUFBT not accepted as MIME type.
VkZaeFVVR not accepted as MIME type.
TVoAAAEAA not accepted as MIME type.
ZGltIGZpb not accepted as MIME type.
badmimetypes.cdb: Modified recently enough; hopefully up to date.
badrcptto: (Default.) Any RCPT TO is allowed.
bouncefrom: Bounce user name is postmaster.
bouncemaxbytes: Bounce size limit is 1 bytes.
concurrencylocal: Local concurrency is 60.
concurrencyremote: Remote concurrency is 30.
databytes: SMTP DATA limit is 20000000 bytes.
doublebounceto: 2B recipient user: postmaster.
mailfromrules: (Default.) Any envelope sender are are accepted.
mailfromrules.cdb: (Default.) No effect.
moreipme: (Default.) No additional IP addresses are me.
notipme: (Default.) All of my IP addresses are me.
percenthack: (Default.) The percent hack is not allowed.
qmqpservers: (Default.) No QMQP servers.
queuelifetime: Message lifetime in the queue is 86400 seconds.
rcpthosts:
SMTP clients may send messages to recipients at domain.ru.
morercpthosts: (Default.) No effect.
morercpthosts.cdb: (Default.) No effect.
recipients: (Default.) SMTP clients may send messages to any recipient.
smtpgreeting: (Default.) SMTP greeting: 220 domain.ru.
smtproutes: (Default.) No artificial SMTP routes.
spfbehavior: (Default.) The SPF behavior is 0.
spfexp: (Default.) The SPF default explanation is: 550 See http://spf.pobox.com/why.html?sender=%{S}&ip=%{I}&receiver=%{xR}.
spfguess: (Default.) The guess SPF rules are: .
spfrules: (Default.) The local SPF rules are: .
timeoutconnect: SMTP client connection timeout is 60 seconds.
timeoutremote: SMTP client data timeout is 1200 seconds.
timeoutsmtpd: SMTP server data timeout is 1200 seconds.
virtualdomains:
Virtual domain: domain.ru:domain.ru
tarpitcount: Actual Tarpitcount: 5.
tarpitdelay: Actual Tarpitdelay: 5.
Собственно в лог в первом случае пишется:
Oct 11 19:41:08 www tcpserver: 1192117268.381885 Reject::RCPT::Failed_Rcptto: P:ESMTP S:81.222.129.50:unknown H:gato50.subscri
be.ru F:gluck@mail.subscribe.ru T:estk@domain.ru
Во втором случае:
Oct 11 19:56:28 www tcpserver: 1192118188.077715 Reject::RCPT::Bad_Rcptto: P:ESMTP S:195.38.53.203:unknown H:pppoe-1995.urtc.r
u F:sonya90vincent@info.gamanetwork.com T:nxtcuib0qygbhwbnqeaaaaa@domain.ru
А проблема всплыла потому, что после 5-10 минут с начала старта qmail и tcpserver
коннект на 25 порт начинает тормозить со страшной силой...