Thanks Paul!

That has definately moved me closer to my goal. I'm hoping yourself, or another sendmail guru can help me get further. My definintion now looks like this:

Mdbmail, P=/usr/local/sbin/dbmail-smtp, F=DFMSPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP,
               T=X-Unix, U=dbmail,
               A=dbmail-smtp -u $u

...basically a copy of the existing procmail definition tweaked for dbmail. dbmail-smtp is getting invoked, but doesn't seem to be getting passed the user. I replaced dbmail-smtp with a shell script which just saved the arguments it was called with and it is just getting "dbmail-smtp -u". $u doesn't seem to be getting passed. Weird, as it seems to be getting set...in the sendmail header format definition there is a "for $u" as part of the Received: header. This shows up in the dbmail-smtp log messages;

read_header(): found header [From root Wed Mar 19 21:06:47 2003 Received: (from [EMAIL PROTECTED]) (8.11.6/8.11.6) id h2K26lX08970 ^Ifor [EMAIL PROTECTED]; Wed, 19 Mar 2003 21:06:47 -0500 Date: Wed, 19 Mar 2003 21:06:47 -0500 To: [EMAIL PROTECTED] ]

"[EMAIL PROTECTED]" is the address I have set up to use. Later on I get:

mail_adr_list(): found 0 emailaddresses
...
Mar 19 21:06:47 vps1 dbmail/smtp[8973]: __auth_query(): executing query [SELECT user_idnr FROM users WHERE userid=''] Mar 19 21:06:47 vps1 dbmail/smtp[8973]: insert_messages(): user [] does not exist


Aggh! I hate sendmail :)

Paul J Stevens wrote:

Hi Scott,

I'm stuck with a couple of SM installations as well :-(

I haven't done dbmail/sendmail and hope never to do so, but I do have a pretty good idea of how to go about it.

You have basically two main routes for messages to take into dbmail:

- mailertable-based, and procmail.

Since the procmail route differs in no way from what you'd do in any other mta, I'm guessing you're interested in the former.

You'll want to be able to enter into your mailertable file stuff like:

somedomain.org dbmail:
.somedomain.org dbmail:

Of course you'll have to define the dbmail mailer in sendmail.mc, something like:

Mdbmail,        P=/usr/sbin/dbmail-smtp, F=lsDq90, D=$z:/,
                T=X-Unix, U=dbmail:dbmail, A=dbmail-smtp -u $u

I havent tested this though. Your flags may vary.



Scott Goodman wrote:


Hi all,

I am a postfix admin who hasn't touched a sendmail installation in some time...I've been asked to implement dbmail as the main message store on a stock RedHat 7.2 system running sendmail + procmail as the MDA. Care anyone share their experiences with this? Unfortunately replacing the MTA with somethine else is not an option at this time.

Any help, or pointers to docs/howtos would be much appreciated!




Reply via email to