Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/postfix/aliases & main.cf

Status
Not open for further replies.

datadan

IS-IT--Management
Jul 22, 2002
283
US
I am trying to use my alias file for some mapping.

1) In main.cf I have the following line:
alias_database = hash:/etc/postfix/aliases

2) in /etc/postfix I have run newaliases (a db file gets generated.

3) I have the following item in my aliase fiel:

decode: root

4) I restarted postfix

5) However when I try to send decode I get the following in my maillog:
Oct 2 17:36:35 mail postfix/smtp[24744]: 34FCA15FC05D: to=<decode@foo.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 Mail accepted for delivery (queued as 24874-785AB4F7).)
Oct 2 17:36:35 mail postfix/pipe[24828]: 4584015FC05D: to=<decode@foo.com>, relay=maildrop, delay=0, status=bounced (user unknown. Command output: Invalid user specified. )

I checked my main.cf file and I have the following line:

local_recipient_maps = $virtual_mailbox_maps, $aliase_database
unknown_local_recipient_reject_code = 450

Other than that I'm stuck....

Any ideas on why it is initially sent, but the qmgr rejects it?
 
Do your other aliases work? Are you running any virtual domains? Are you sure the aliases db is in the right location?
 
If you cut and pasted the above, I'd note that your local_recipient_maps line has "$aliase_database" in it, as opposed to "$alias_database
 
I am running virtual domains. I needed to used a virtual map as opposed to the alias database.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top