Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Postfix serves for my virtual domains and works fine. But for one of my domains: - it bounces mails targeted at mail@domain.tld - it rejects mails targeted at nonexisting@domain.tld

problem is, mail@domain.tld does not exist either.

here is my postconf

why does it bounce mail@domain.tld, and reject other non existing mails?

Thanks.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

It's hard to tell without seeing a bounce message. Check the bounce error message and also look into your mail log (frequently /var/log/mail.log or maillog) to get more information about why it is bouncing.

Edit: OP solved problem by removing unix:passwd.byname from local_recipient_maps in the main.cf Postfix configuration file.

share|improve this answer
    
argh! seems that postfix accepts the mails for systemuser@virtualdomain.tld, then finds out that no systemuser mailbox exists for virtualdomain.tld and bounces.. i've tried it with system(linux) users such as mail, news, games @virtualdomain.tlds i'm hosting and all bounced. but bogus account names such as foo, bar etc. are rejected. –  hinoglu May 12 '10 at 20:37
    
well, you can remove the system users as valid users from your postfix configuration, if no local (/etc/passwd) users are meant to get mail. i don't know off the top of my head how to remove the configuration, but it shouldn't be hard. i presume you're using virtual users hosted in a database or something? –  cpbills May 12 '10 at 21:50
    
yep removing unix:passwd.byname from local_recipient_maps solved my problem, thanks cpbills. –  hinoglu May 12 '10 at 22:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.