I followed a guide to put together a server https://wiki.gentoo.org/wiki/Complete_Virtual_Mail_Server it went smooth with no real headaches. First domain works like a champ but adding a second domain, I can’t receive mail mail due to a relay reject
2013-10-03T02:53:02+00:00 emailer1 postfix/trivial-rewrite[18031]: warning: table "pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf": empty lookup result for: "effin.me" -- ignored
2013-10-03T02:53:02+00:00 emailer1 postfix/smtpd[18144]: NOQUEUE: reject: RCPT from mail-vc0-f181.google.com[209.85.220.181]: 554 5.7.1 <test@effin.me>: Relay access denied; from=<telecom@gmail.com> to=<test@effin.me> proto=ESMTP helo=<mail-vc0-f181.google.com>
The postfix side must be working fine since it has nothing to do with mailboxes. The records in the postgres db are identical (first and second domain)
emailer1 vmail # ls -l effin.me/test/
total 28
drwx------ 2 vmail vmail 4096 Oct 2 18:19 courierimapkeywords
-rw-r--r-- 1 vmail vmail 23 Oct 2 18:23 courierimapsubscribed
-rw-r--r-- 1 vmail vmail 15 Oct 2 18:23 courierimapuiddb
-rw-r--r-- 1 vmail vmail 469 Oct 2 18:16 courierpop3dsizelist
drwx--S--- 2 vmail vmail 4096 Oct 2 18:23 cur
drwx--S--- 2 vmail vmail 4096 Oct 2 18:19 new
drwx--S--- 2 vmail vmail 4096 Oct 3 02:50 tmp
postfix=# SELECT maildir FROM mailbox WHERE local_part='test' AND domain='effin.me' AND active='1';
maildir
----------------
effin.me/test/
(1 row)
postfix=# SELECT goto FROM alias WHERE address='test@effin.me' AND active='1';
goto
---------------
test@effin.me
(1 row)
emailer1 ~ # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 emailer1.nyctelecomm.com ESMTP Postfix
EHLO emailer1.telecomm.com
250-emailer1.telecomm.com
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:test@effin.me
250 2.1.0 Ok
rcpt to:bcd-dd214@yahoo.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
test email out from cli.
.
250 2.0.0 Ok: queued as 445887490E
quit
221 2.0.0 Bye
Connection closed by foreign host.