Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I setup the email server. I am able to send out mail but when I try to receive mail by sending an email to myself from another email, it doesn't work. The other email I receive a mailer-daemon and this one shows as a reject.

This is the error that i get in (/var/log/mail.log):

Jun 24 19:17:31 localhost postfix/smtpd[13352]: connect from mail-lb0-f173.google.com[209.85.217.173]
Jun 24 19:17:31 localhost postfix/trivial-rewrite[13329]: warning: do not list domain socialbaked.com in BOTH mydestination and virtual_mailbox_domains
Jun 24 19:17:31 localhost postfix/smtpd[13352]: NOQUEUE: reject: RCPT from mail-lb0-f173.google.com[209.85.217.173]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-lb0-f173.google.com>
Jun 24 19:17:31 localhost postfix/smtpd[13352]: disconnect from mail-lb0-f173.google.com[209.85.217.173]
Jun 24 19:19:38 localhost postfix/master[2102]: daemon started -- version 2.7.0, configuration /etc/postfix
Jun 24 19:19:39 localhost dovecot: Dovecot v1.2.9 starting up (core dumps disabled)
Jun 24 19:19:39 localhost dovecot: auth-worker(default): mysql: Connected to 127.0.0.1 (mail)
Jun 24 19:19:41 localhost postfix/master[2102]: reload -- version 2.7.0, configuration /etc/postfix
share|improve this question
    
Have you checked this? –  pl1nk Jun 25 '12 at 0:06
    
thanks that helped. i need to verify that this worked. where do i check to see if i received the email? i dont see any errors in the log and it shows a from address being mine. –  Sarmen B. Jun 25 '12 at 1:28
1  
By default, the mail should be spooled to mbox files in /var/spool/mail named after the recipient. –  James Henstridge Jun 25 '12 at 3:31

2 Answers 2

The following line from the error log gives valuable info:

localhost postfix/smtpd[13352]: NOQUEUE: reject: RCPT from mail-lb0-f173.google.com[209.85.217.173]: 550 5.1.1 <[email protected]>: Recipient address ejected: User unknown in local recipient table; from=<[email protected]> o=<[email protected]> proto=ESMTP helo=<mail-lb0-f173.google.com>

Postfix should relay all mail to other servers on the internet, it does not actually receive mail for any domains. As in the error log example.com should be forwarded to the mail server for example.com. The solution, is to remove $mydomain from postfix config /etc/postfix/main.cf in line:

mydestination = $mydomain, localhost.$mydomain, localhost

Source: serverfault

share|improve this answer

For me, the issue was that I also had a DNS issue. To fix this, I used

 dpkg-reconfigure postfix

From within the terminal window and changed the "local networks" field answer to include the IP of my public IP for the server.

Afterwards, I ran service postfix reload and service postfix restart and all was well.

share|improve this answer

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.