logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: dbmail unable to find recipient dbmail + postfix: msg#00136

mail.imap.dbmail

Subject: Re: dbmail unable to find recipient dbmail + postfix

Your installation is incomplete. Part of the create_tables...
sql files is the statement:

INSERT INTO users (userid, passwd, encryption_type)
VALUES ('__@!internal_delivery_user!@__', '', 'md5');

Apparently this systemuser is missing.


David wrote:
Hi, I'm new to DBmail and am having some difficult
time configuring dbmail to work with postfix. I am
using dbmail 2.0 rc2 by the way.

Basically, I am trying to set up a box with a DSL line
running Postfix and DBmail on the same machine. I
want Postfix to receive email, detect my domain
echopc.com and then recognize that it's a "virtual
domain" and forward the message (regardless of
recipient name) to dbmail for processing. I manage to
get Postfix to forward mail by putting echopc.com in
the $mydestination variable and then creating a
/etc/postfix/transport file that looks like this:

echopc.com dbmail:

I also have an entry in master.cf that looks like
this:
dbmail unix - n n - - pipe
flags= user=dbmail:dbmail
argv=/usr/local/sbin/dbmail-smtp -d ${recipient}

In DBmail, I created a user with dmail-adduser and
added aliases of @echopc.com (catch all alias) so that
any email that don't match a particular username, but
is addressed to the echopc.com domain will be sent to
this user.

When I send an email to david@xxxxxxxxxx, I get the
following error according to /var/log/maillog

Feb 18 10:07:18 trinity postfix/smtpd[21456]: connect
from web21403.mail.yahoo.com[216.136.232.73]
Feb 18 10:07:18 trinity postfix/smtpd[21456]:
70C76AB5B5:
client=web21403.mail.yahoo.com[216.136.232.73]
Feb 18 10:07:18 trinity postfix/cleanup[21457]:
70C76AB5B5:
message-id=<20040218174649.99088.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Feb 18 10:07:18 trinity postfix/smtpd[21456]:
disconnect from
web21403.mail.yahoo.com[216.136.232.73]
Feb 18 10:07:18 trinity postfix/nqmgr[20065]:
70C76AB5B5: from=<waterbolt@xxxxxxxxx>, size=808,
nrcpt=1 (queue active)
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item
[host]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value [localhost]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item [db]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value [dbmail]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item
[user]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value [dbmail]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item
[pass]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value [dbpass]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item
[sqlport]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value []
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): searching value for config item
[sqlsocket]
Feb 18 10:07:18 trinity dbmail/smtp[21460]:
GetConfigValue(): found value []
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): readheader start
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): copying line into header
Feb 18 10:07:19 trinity last message repeated 10 times
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): single blank line found
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): copying line into header
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): readheader done
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): found header [Received: from
web21403.mail.yahoo.com (web21403.mail.yahoo.com
[216.136.232.73]) ^Iby trinity.the.matrix (Postfix)
with SMTP id 70C76AB5B5 ^Ifor <david@xxxxxxxxxx>; Wed,
18 Feb 2004 10:07:18 -0800 (PST) Message-ID:
<20040218174649.99088.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Received: from [206.17.88.100] by
web21403.mail.yahoo.com via HTTP; Wed, 18 Feb 2004
09:46:49 PST Date: Wed, 18 Feb 2004 09:46:49 -0800
(PST) From: David <waterbolt@xxxxxxxxx> Subject:
sending to dbmail To: david@xxxxxxxxxx MIME-Version:
1.0 Content-Type: text/plain; charset=us-ascii ] of
len [551] using mem [551]
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
read_header(): function successfull
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mime_readheader(): entering mime loop
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mime_readheader(): found double newline; header size:
12 lines
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mimelist currently has [9] nodes
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mail address parser starting
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): total fields in header 9
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): scanning for Return-Path
Feb 18 10:07:19 trinity last message repeated 8 times
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): found 0 emailaddresses
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mail address parser finished
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mimelist currently has [9] nodes
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mail address parser starting
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): total fields in header 9
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): scanning for From
Feb 18 10:07:19 trinity last message repeated 4 times
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): found waterbolt@xxxxxxxxx, next in
list is (null)
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): scanning for From
Feb 18 10:07:19 trinity last message repeated 3 times
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): found 1 emailaddresses
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list(): mail address parser finished
Feb 18 10:07:19 trinity dbmail/smtp[21460]: main():
using SPECIAL_DELIVERY to email addresses
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list_special(): gathering info from command
line
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
mail_adr_list_special(): adding [david@xxxxxxxxxx] to
userlist
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
insert_messages(): resolving address
[david@xxxxxxxxxx]
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
dbpgsql.c,db_query: executing query [SELECT user_idnr
FROM users WHERE userid='david@xxxxxxxxxx']
Feb 18 10:07:19 trinity dbmail/smtp[21460]: pipe.c,
resolve_address: added user [david@xxxxxxxxxx] id [1]
to delivery list
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
dbpgsql.c,db_query: executing query [SELECT user_idnr
FROM users WHERE
userid='__@!internal_delivery_user!@__']
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
pipe.c,store_message_temp: unable to find user_idnr
for user [__@!internal_delivery_user!@__]. Make sure
this system user is in the database!
Feb 18 10:07:19 trinity dbmail/smtp[21460]:
insert_messages(): failed to store temporary message.
Feb 18 10:07:19 trinity dbmail/smtp[21460]: main():
freeing memory blocks
Feb 18 10:07:19 trinity dbmail/smtp[21460]: main():
they're all free. we're done.
Feb 18 10:07:19 trinity postfix/pipe[21459]:
70C76AB5B5: to=<david@xxxxxxxxxx>, relay=dbmail,
delay=1, status=sent (echopc.com)


What am I doing wrong? The user exists and dbmail
seems to find the userid on the first SQL query, but
then fails at the end. Any help would be greatly
appreciate it.

Thanks,
David


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
_______________________________________________
Dbmail mailing list
Dbmail@xxxxxxxxxx
https://mailman.fastxs.nl/mailman/listinfo/dbmail


--
________________________________________________________________
Paul Stevens mailto:paul@xxxxxx
NET FACILITIES GROUP PGP: finger paul@xxxxxx
The Netherlands________________________________http://www.nfg.nl


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation