On roundcube, I can send mails internally, but when I try to send to an external .com, qmail tells roundcube
SMTP Error (553): Failed to add recipient "person@comcast.com" (sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)).
(I have replaced the recipient with "person".)
I have configured qmail to matches my prior, function setup (on Linux, from which I am migrating for various reasons).
ls /etc/tcp*
/etc/tcp.smtp /etc/tcp.smtp.cdb
cat /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
netstat -na | grep 25 | head -n 1
tcp46 0 0 *.25 *.* LISTEN
ps ax | grep qmail
30872 v0- I 0:00.01 qmail-send
31310 v0- I 0:00.00 splogger qmail
31376 v0- I 0:00.00 qmail-lspawn ./Maildir/
31894 v0- I 0:00.00 qmail-rspawn
32210 v0- I 0:00.00 qmail-clean
71716 v0- I 0:00.00 /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -R -H -u 82 -g 81 0 smtp /var/qmail/bin/qmail-smtpd
As you can see, qmail-smtpd is, or at least should be, reading /etc/tcp.smtp.cdb.
After grabbing tarpit.patch (which is missing from FBSD's distfiles directory) via
cd /usr/ports/distfiles/qmail/
wget https://notes.sagredo.eu/files/qmail/patches/tarpit.patch
I installed qmail via ports:
cd /usr/local/ports/mail
make install
My selected options follow.
┌───────────────────────────── netqmail-1.06_6 ────────────────────────────────┐
│ ┌──────────────────────────────────────────────────────────────────────────┐ │
│ │ [ ] BIG_CONCURRENCY_PATCH Use a concurrency greater than 240 │ │
│ │ [ ] BIG_TODO_PATCH Enable big_todo qmail patch │ │
│ │ [x] BLOCKEXEC_PATCH Block many windows viruses/worms │ │
│ │ [x] DISCBOUNCES_PATCH Discard double-bounces │ │
│ │ [x] DNS_CNAME Request CNAME (vs ANY for BIND 4 bug) │ │
│ │ [x] DOCS Build and/or install documentation │ │
│ │ [ ] EXTTODO_PATCH Extern high-perform. todo processing │ │
│ │ [x] LOCALTIME_PATCH Emit dates in the local timezone │ │
│ │ [ ] MAILDIRQUOTA_PATCH Maildir++ support │ │
│ │ [ ] OUTGOINGIP_PATCH Set the IP address to send messages │ │
│ │ [ ] QEXTRA Enable QUEUE_EXTRA copy feature │ │
│ │ [ ] QMTPC_PATCH Send email using qmtp protocol │ │
│ │ [x] RCDLINK Create rc.d/qmail symlink │ │
│ │ [ ] SMTP_AUTH_PATCH Provide SMTP Authentication │ │
│ │ [x] SPF_PATCH Implement SPF checker │ │
│ │ [x] TARPIT_PATCH Implement TARPIT functions │ │
│ └──────────────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────────────────────────────────────────────┘
How may I have qmail-smtpd follow my rules in /etc/tcp.smtp.cdb?
SMTP Error (553): Failed to add recipient "person@comcast.com" (sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)).
(I have replaced the recipient with "person".)
I have configured qmail to matches my prior, function setup (on Linux, from which I am migrating for various reasons).
ls /etc/tcp*
/etc/tcp.smtp /etc/tcp.smtp.cdb
cat /etc/tcp.smtp
127.:allow,RELAYCLIENT=""
192.168.1.:allow,RELAYCLIENT=""
netstat -na | grep 25 | head -n 1
tcp46 0 0 *.25 *.* LISTEN
ps ax | grep qmail
30872 v0- I 0:00.01 qmail-send
31310 v0- I 0:00.00 splogger qmail
31376 v0- I 0:00.00 qmail-lspawn ./Maildir/
31894 v0- I 0:00.00 qmail-rspawn
32210 v0- I 0:00.00 qmail-clean
71716 v0- I 0:00.00 /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -R -H -u 82 -g 81 0 smtp /var/qmail/bin/qmail-smtpd
As you can see, qmail-smtpd is, or at least should be, reading /etc/tcp.smtp.cdb.
After grabbing tarpit.patch (which is missing from FBSD's distfiles directory) via
cd /usr/ports/distfiles/qmail/
wget https://notes.sagredo.eu/files/qmail/patches/tarpit.patch
I installed qmail via ports:
cd /usr/local/ports/mail
make install
My selected options follow.
┌───────────────────────────── netqmail-1.06_6 ────────────────────────────────┐
│ ┌──────────────────────────────────────────────────────────────────────────┐ │
│ │ [ ] BIG_CONCURRENCY_PATCH Use a concurrency greater than 240 │ │
│ │ [ ] BIG_TODO_PATCH Enable big_todo qmail patch │ │
│ │ [x] BLOCKEXEC_PATCH Block many windows viruses/worms │ │
│ │ [x] DISCBOUNCES_PATCH Discard double-bounces │ │
│ │ [x] DNS_CNAME Request CNAME (vs ANY for BIND 4 bug) │ │
│ │ [x] DOCS Build and/or install documentation │ │
│ │ [ ] EXTTODO_PATCH Extern high-perform. todo processing │ │
│ │ [x] LOCALTIME_PATCH Emit dates in the local timezone │ │
│ │ [ ] MAILDIRQUOTA_PATCH Maildir++ support │ │
│ │ [ ] OUTGOINGIP_PATCH Set the IP address to send messages │ │
│ │ [ ] QEXTRA Enable QUEUE_EXTRA copy feature │ │
│ │ [ ] QMTPC_PATCH Send email using qmtp protocol │ │
│ │ [x] RCDLINK Create rc.d/qmail symlink │ │
│ │ [ ] SMTP_AUTH_PATCH Provide SMTP Authentication │ │
│ │ [x] SPF_PATCH Implement SPF checker │ │
│ │ [x] TARPIT_PATCH Implement TARPIT functions │ │
│ └──────────────────────────────────────────────────────────────────────────┘ │
├──────────────────────────────────────────────────────────────────────────────┤
│ < OK > <Cancel> │
└──────────────────────────────────────────────────────────────────────────────┘
How may I have qmail-smtpd follow my rules in /etc/tcp.smtp.cdb?