[ale] Postfix on CentOS 5.4 - How to configure for wildcard domain?

Ryan Fish fishr at bellsouth.net
Mon Jan 11 16:13:22 EST 2010


CentOS 5.4 (2.6.18-164.9.1.el5PAE)
Postfix-2.3.3-1.1-el5_2

I am at a complete loss as to how to configure Postfix to allow for the use of a wildcard domain name.  As I've never used it prior to now the documentation has proved quite confusing.  Anyway... here's what I need to accomplish:

Server FQDN = hostname.domain.prod
Public FQDN = elists.domain.com
Accept mail for = *.domain.net (note the TLD)

I need to configure Postfix to accept mail sent to user@*.domain.net and place in the mailbox of a local user named elist.  This user will be the catchall for *.domain.net.

So far I've gotten Postfix to reject messages with relaying denied OR accept them then, based on the logs, attempt to loop back into itself but time out as the firewall does not allow such.  Since I haven't been able to even get Postfix to accept and deliver a single message yet I figure I should start there.  At this point in time, with the settings outlined below, all mail is rejected as 554 5.7.1 Relay access denied.

main.cf
myhostname = elists.domain.com
mydomain = domain.com
inet_interfaces = all
proxy_interfaces = WAN IP of server (server is behind a NAT)
mydestination = $myhostname, localhost, $mydomain, *.domain.net
mynetworks = 192.168.3.0/24, 127.0.0.0/8
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Mailbox
mail_spool_directory = /var/mail

I'm sure there's more someone would need to know however I'm not certain what that information would be so just ask and I'll let you know.

Any and all help provided is greatly appreciated!

Thank you in advance.
-Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100111/68fd2e97/attachment.html 


More information about the Ale mailing list