PDA

View Full Version : Postfix configuration - mydestination and virtual_mailbox_domains


mrazicek
28th June 2008, 02:22
Hi!

I am newbie in Linux and I have problem with postfix configuration on Debian Etch.

I have VHCS control panel installed and I have problem with delivering email to one email address.

main.cf:

myhostname = mail.server.tld
mydomain = server.tld
mydestination = $myhostname, $mydomain

mynetworks_style = host

append_dot_mydomain = no
local_transport = local
virtual_transport = virtual
transport_maps = hash:/etc/postfix/vhcs2/transport

.....
virtual_mailbox_domains = hash:/etc/postfix/vhcs2/domains


All email communication is working well, but If I send email to : info@server.tld, I get an error message:
postfix/trivial-rewrite[16832]: warning: do not list domain server.tld in BOTH mydestination and virtual_mailbox_domains

postfix/local[17028]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled

postfix/local[17028]: E26A923B9265: to=<info@server.tld>, relay=local, delay=0.04, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "info")
Jun 27 23:39:15 debian postfix/cleanup[16831]: EC40B23B92AA: message-id=<20080627213915.EC40B23B92AA@mail.server.tld>


I was looking in virtual_mailbox_domains file, and there is right domain, also this domain is in mydestination.

I am hopeless with it. Could someone help with this problem?

Many thanks

topdog
28th June 2008, 12:50
remove the domain from mydestination

mrazicek
28th June 2008, 13:15
ooou it's working perfect.

Thank you very much