This is a Postfix configuration issue but a detailed
explanation is set out
in the INSTALL files which are in the DBMail tarball.
Nevertheless, you need to tell Postfix to look in the
aliases or users table
(local_recipient_maps) of your dbmail database to verify
that the user
exists.
You can do this in many ways but I will show you one:
Using MySQL/PgSQL (Postfix must be compiled to use xxSQL),
in main.cf, one
of the following lines should be used:
#--> For PostGreSQL:
local_recipient_maps = pgsql:/etc/postfix/mailbox.cf
#--> For MySQL:
local_recipient_maps = mysql:/etc/postfix/mailbox.cf
where mailbox.cf looks like:
#/etc/postfix/mailbox.cf change user/passwd/dbname/hosts to
suit your system
user = dbmail
password = dbmail
dbname = dbmail
hosts = 127.0.0.1 192.168.1.1
query = SELECT alias FROM dbmail_aliases WHERE alias = '%s'
Hope this helps.
best...
Mike
----- Original Message -----
From: "Nataraj S Narayan" <natarajsn sancharnet.in>
To: <dbmail dbmail.org>
Sent: Thursday, December 01, 2005 10:27 AM
Subject: [Dbmail] fetchmail and dbmail
Hi
I sent a mail from my natarajsn gmail.com to my nataraj mycompany.com.
This is the mail i get at gmail.
------------------------------------------------------------
--------------------------------------------------
This is the Postfix program at host ghost.mycompany.com
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to
<postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<nataraj localhost.mycompany.com(expanded from <nataraj localhost>): host
localhost[127.0.0.1] said: 550 Recipient
<nataraj localhost.mycompany.com>
FAIL (in reply to RCPT TO command)
Final-Recipient: rfc822; nataraj localhost.mycompany.com
Original-Recipient: rfc822; nataraj localhost
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host localhost[127.0.0.1] said:
550 Recipient
<nataraj localhost.mycompany.comFAIL (in reply to RCPT TO
command)
------------------------------------------------------------
------------------------------------------------------------
----
Where did nataraj localhost.mycompany.com come from? Does
fetchmail do this?
So postfix does'nt know what is localhost.mycompany.com. So
it sends
back through the relay server to the sender?
Is it enough that i add
localhost.mycompany.com dbmail-lmtp:localhost:24 in
/etc/postfix/transport ?
pls help
regards
Nataraj
_______________________________________________
Dbmail mailing list
Dbmail dbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
_______________________________________________
Dbmail mailing list
Dbmail dbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
|