Enable tracelevel=5 in dbmail.conf to have more verbose output. Make
sure you aliases entries containing your email mapped to the user.
In addition, not related to your problem but your mysql and postfix are
outdated, especially postfix. Could become security problems.
Eugene Prokopiev wrote:
Hi,
I have configured DBMail 2.0.4 with Postfix 2.0.20 and MySQL 4.0.20 on
Linux:
# cat /etc/dbmail.conf | grep -v ^$ | grep -v ^#
[DBMAIL]
host=localhost
sqlport=
sqlsocket=
user=dbmail
pass=dbmailpwd
db=dbmail
POSTMASTER=
TRACE_LEVEL=2
[SMTP]
SENDMAIL=/usr/sbin/sendmail
AUTO_NOTIFY=no
AUTO_REPLY=no
TRACE_LEVEL=2
[LMTP]
EFFECTIVE_USER=nobody
EFFECTIVE_GROUP=nogroup
BINDIP=*
PORT=24
NCHILDREN=20
MAXCHILDREN=10
MINSPARECHILDREN=2
MAXSPARECHILDREN=4
MAXCONNECTS=10000
TIMEOUT=300
RESOLVE_IP=yes
TRACE_LEVEL=2
MAX_ERRORS=500
[POP]
EFFECTIVE_USER=nobody
EFFECTIVE_GROUP=nogroup
BINDIP=*
PORT=110
NCHILDREN=50
MAXCHILDREN=200
MINSPARECHILDREN=2
MAXSPARECHILDREN=4
MAXCONNECTS=10000
TIMEOUT=300
RESOLVE_IP=yes
POP_BEFORE_SMTP=no
TRACE_LEVEL=2
[IMAP]
EFFECTIVE_USER=nobody
EFFECTIVE_GROUP=nogroup
BINDIP=*
PORT=143
NCHILDREN=50
MAXCHILDREN=200
MINSPARECHILDREN=2
MAXSPARECHILDREN=4
MAXCONNECTS=10000
TIMEOUT=4000
RESOLVE_IP=yes
IMAP_BEFORE_SMTP=no
TRACE_LEVEL=2
# cat /etc/postfix/main.cf | grep -v ^$ | grep -v ^#
mydestination = localhost, $myhostname, localhost.$mydomain,
$config_directory/mydestination
local_recipient_maps =
unknown_local_recipient_reject_code = 550
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
mailbox_transport = dbmail-lmtp:localhost:24
fallback_transport = dbmail-lmtp:localhost:24
smtpd_etrn_restrictions = permit_mynetworks, reject
smtpd_helo_required = yes
readme_directory = /etc/postfix/README_FILES
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
queue_directory = /var/spool/postfix
mail_owner = postfix
# cat /etc/postfix/master.cf | grep -v ^$ | grep -v ^#
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
maildrop unix - n n - - pipe
flags=DRhu user=mail argv=/usr/bin/maildrop-userdb -d ${recipient}
dbmail-lmtp unix - - n - - lmtp
$ /usr/local/sbin/dbmail-users -l
Opening connection to database...
Opening connection to authentication...
Ok. Connected
Existing users:
[anyone]
[john]
[test]
[EMAIL PROTECTED]@__]
$ echo hello | mail -s Hello [EMAIL PROTECTED]
# tail -f /var/log/mail/all
Aug 10 09:44:46 ebr-app postfix/pickup[27857]: 100EA3C6E: uid=500
from=<john>
Aug 10 09:44:46 ebr-app postfix/cleanup[27955]: 100EA3C6E:
message-id=<[EMAIL PROTECTED]>
Aug 10 09:44:46 ebr-app postfix/qmgr[27858]: 100EA3C6E:
from=<[EMAIL PROTECTED]>, size=319, nrcpt=1 (queue active)
Aug 10 09:44:46 ebr-app dbmail/lmtpd[27459]: PerformChildTask():
incoming connection from [127.0.0.1 (localhost.localdomain)]
Aug 10 09:44:46 ebr-app postfix/lmtp[27958]: 100EA3C6E:
to=<[EMAIL PROTECTED]>, relay=localhost[127.0.0.1], delay=0,
status=bounced (host localhost[127.0.0.1] said: 550 Recipient
<[EMAIL PROTECTED]> FAIL (in reply to RCPT TO command))
Aug 10 09:44:46 ebr-app postfix/cleanup[27955]: 21A033C70:
message-id=<[EMAIL PROTECTED]>
Aug 10 09:44:46 ebr-app postfix/qmgr[27858]: 21A033C70: from=<>,
size=2134, nrcpt=1 (queue active)
Aug 10 09:44:46 ebr-app postfix/lmtp[27958]: 21A033C70:
to=<[EMAIL PROTECTED]>, relay=localhost[127.0.0.1], delay=0,
status=bounced (host localhost[127.0.0.1] said: 550 Recipient
<[EMAIL PROTECTED]> FAIL (in reply to RCPT TO command))
What's wrong in my configuration?
--
Thanks,
Eugene Prokopiev
_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail