Tom,

Do you have something like:

mailbox_transport               = dbmail-lmtp:127.0.0.1:24

?


----- Original Message ----- From: "Tom Allison" <[EMAIL PROTECTED]>
To: "DBMail mailinglist" <dbmail@dbmail.org>
Sent: Saturday, November 25, 2006 9:02 PM
Subject: Re: [Dbmail] procmail


Paul J Stevens wrote:
Tom Allison wrote:
I think the problem is with postfix.

Don't think so. It should work. Is the /etc/procmailrc file executed?
Did you set LOGFILE in it? If so, what did it tell you?

What is the output from 'postconf mailbox_command'
What is the content of /etc/procmailrc



mailbox_command = procmail -a $RECIPIENT


procmailrc currently reads:

LOGFILE=/var/log/procmail.log
DEFAULT="| /usr/sbin/dbmail-smtp -d $1"
LOGABSTRACT=yes
VERBOSE=yes
COMSAT=no
LOG=`printenv`

EXITCODE=75 HOST


| /usr/sbin/dbmail-smtp -d $1


##########################
This should give me a temporary failure and push the message back into postfix's queue. But I'm not getting this far. I'm still getting the failure:

Nov 25 15:41:53 cling postfix/local[23015]: 14E174C055: to=<[EMAIL PROTECTED]>, relay=local, delay=0.16, delays=0.07/0.05/0/0.04, dsn=5.1.1, status=bounced (
unknown user: "tom")


Which leads me to believe that this is slightly screwed up between postfix and the local_recipient_map and my aliases files.

local_recipient_maps = pgsql:/etc/postfix/pgsql-recipients.cf
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

However, I should point out that there is no 'tom' mentioned in my aliases file. So I'm not confident that this is the problem. It appears that the postfix-local operation is trying to query the /etc/passwd file for the username 'tom' and not finding it.


to quote man local:
All delivery decisions are made using the bare recipient name (i.e. the address localpart), folded to lower case. See also under ADDRESS
       EXTENSION below for a few exceptions.

#####################################################
## I think this is the core of the problem I'm having. How do I change the
## delivery process from a bare recipient name?
#####################################################

And from the postfix website:
If you use the local delivery agent mailbox_transport or fallback_transport features to receive mail for users not in /etc/passwd, then you need to list those users under local_recipient_maps, or you need to disable the local_recipient_maps feature as described below.
(I'm using local_recipient_maps, this works under LMTP delivery)

Additionally:
Delivering some users locally while sending mail as [EMAIL PROTECTED]

* In order to send mail as [EMAIL PROTECTED], specify what domain is to be appended to addresses that do not have a domain:

      /etc/postfix/main.cf:
          myorigin = domain.tld
---
I have myorigin = /etc/mailname
where mailname contains 'tacocat.net'

_______________________________________________
DBmail mailing list
DBmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Reply via email to