List Info

Thread: fetchmail and dbmail




fetchmail and dbmail
user name
2005-12-01 17:48:44
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" <natarajsnsancharnet.in>
To: <dbmaildbmail.org>
Sent: Thursday, December 01, 2005 10:27 AM
Subject: [Dbmail] fetchmail and dbmail


Hi

I sent a mail from my natarajsngmail.com to my natarajmycompany.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

<natarajlocalhost.mycompany.com(expanded from <natarajlocalhost>): host
localhost[127.0.0.1] said: 550 Recipient
<natarajlocalhost.mycompany.com>
FAIL (in reply to RCPT TO command)


Final-Recipient: rfc822; natarajlocalhost.mycompany.com
Original-Recipient: rfc822; natarajlocalhost
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host localhost[127.0.0.1] said:
550 Recipient
<natarajlocalhost.mycompany.comFAIL (in reply to RCPT TO
command)

------------------------------------------------------------
------------------------------------------------------------
----

Where did natarajlocalhost.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
Dbmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail

 

_______________________________________________
Dbmail mailing list
Dbmaildbmail.org
htt
ps://mailman.fastxs.nl/mailman/listinfo/dbmail
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )