El 29/04/15 a las 16:25, Robert Chalmers escribió:
I have the following error when trying to send mail to a virtual
domain on the server.
I’m afraid I can not find the source of this error.
postfix/smtpd[901]: NOQUEUE: reject: RCPT from
mail-yk0-f175.google.com
<http://mail-yk0-f175.google.com>[209.85.160.175]: 550 5.1.1
<station.mana...@quantum-radio.net
<mailto:station.mana...@quantum-radio.net>>: Recipient address
rejected: User unknown in virtual mailbox table;
from=<racu...@gmail.com <mailto:racu...@gmail.com>>
to=<station.mana...@quantum-radio.net
<mailto:station.mana...@quantum-radio.net>> proto=ESMTP
helo=<mail-yk0-f175.google.com <http://mail-yk0-f175.google.com>>
If this is not the appropriate mailing list for this type of question,
can someone please point me at a list that is?
thanks
Robert
*robert$ postconf -n*
[...]
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
[...]
What's the content of /etc/postfix/mysql-virtual-mailbox-maps.cf? For a
given e-mail address, it should return the path where the virtual user's
inbox is. For example:
user = db_username
password = db_password
dbname = db_name
query = SELECT CONCAT(SUBSTRING_INDEX(email, '@', -1), '/',
SUBSTRING_INDEX(email, '@', 1), '/') FROM users WHERE email = '%s'
hosts = 127.0.0.1
The query field assumes that an e-mail address like
station.mana...@quantum-radio.net will be passed as %s. In the case
above, it's assumed that paths are always domain/username/ like, so
following the example, quantum-radio.net/station.manager/ would be returned.
This path is relative to the virtual_mailbox_base parameter, which by
the way you don't seem to have defined. If your virtual mailboxes are
located under /home/virtual, set virtual_mailbox_base to this value so
the user mailbox's path would be returned as
/home/virtual/quantum-radio.net/station.manager/.
Regards,
Nicolás