Hi Jeff,

In the end I found the problem. I tied to set-up postfix like this was a
standard install. But that was my downfall. I had added the domain to the
"virtual" file and to the postfix config file. That in it's self is bad. But
is caused postfix to look for an alias of this virtual domain. Once I
removed both entries it passed the email off the dbmail delivery agent.

Thanks,

Scotty.

-----Original Message-----
From: Jeff Brenton [mailto:[EMAIL PROTECTED]
Sent: July 5, 2004 6:46 PM
To: Scott Johnson
Subject: Re: [Dbmail] postfix gives User unknown in virtual alias table


Hello Scott,

SJ> I have a dbmail server behind a firewall. The firewall(sendmail) is
setup
SJ> to relay incoming emails to the dbmail(postfix) server. I have made the
SJ> following changes to the postfix config files.

If your postfix machine has access to your SQL server, you need to teach it
how to query the dbmail aliases table. That's easier if you're dealing with
MySQL (support for this comes with the postfix source code), but it can be
done fir Postgres, if you find the right patches.

You'll add a line like this to your main.cf file like:

local_recipient_maps = mysql:/etc/postfix/mailbox.cf

and the configuration file will contain something like:

user = postfix
password = [password]
dbname = dbmail
table = aliases
hosts = sql.mydomain.com
select_field = alias
where_field = alias

The, postfix will accept mail ONLY if the addressee exists in the aliases
table.

--
Best regards,
 Jeff                            mailto:[EMAIL PROTECTED]

Reply via email to