LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Microsoft refugee having Linux issue (http://www.linuxquestions.org/questions/linux-software-2/microsoft-refugee-having-linux-issue-894598/)

Aquachip 07-30-2011 01:27 AM

Microsoft refugee having Linux issue
 
I run a Windows based e-mail server and looking at moving my new server to Linux, however, this following problem might stop that, so I am hoping someone can help me out - I cannot receive mail.


During installation, I was to choose a general type of mail configuration. I select "Internet Site" as this is what it is.
I was then asked to input a system mail name. I used my IPv4 address (I will be hosting multiple domains).

In accordance with official documentation at http://www.postfix.org/VIRTUAL_READM...irtual_mailbox, I performed the following:

Added to /etc/postfix/main.cf:
Quote:

virtual_mailbox_domains = domain1.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gui_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
Added to /etc/postfix/vmailbox:
Quote:

name1@domain1.com domain1.com/name1
name2@domain2.com domain2.com/name2
Added to /etc/postfix/virtual
Quote:

postmaster@domain1.com postmaster
Executed at shell:
Quote:

postmap /etc/postfix/virtual
postmap /etc/postfix/vmailbox
postfix reload
I then sent myself an e-mail from an external server but did not receive the mail and was reported the following issues in log files:

mail.info:
Quote:

Jul 30 04:13:35 n-desktop postfix/smtpd[1767]: connect from bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
Jul 30 04:13:36 n-desktop postfix/smtpd[1767]: 4301120099C: client=bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
Jul 30 04:13:36 n-desktop postfix/cleanup[1785]: 4301120099C: message-id=<BAY152-W44EC028D90D70E4B45669AC9370@phx.gbl>
Jul 30 04:13:36 n-desktop postfix/qmgr[1757]: 4301120099C: from=<someone1243@hotmail.com>, size=1373, nrcpt=1 (queue active)
Jul 30 04:13:36 n-desktop postfix/virtual[1786]: warning: recipient name1@domain1.com: not found in virtual_gid_maps
Jul 30 04:13:36 n-desktop postfix/virtual[1786]: 4301120099C: to=<name1@domain1.com>, relay=virtual, delay=0.9, delays=0.81/0/0/0.09, dsn=4.3.5, status=deferred (mail system configuration error)
Jul 30 04:13:37 n-desktop postfix/smtpd[1767]: disconnect from bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
mail.log:
Quote:

Jul 30 04:13:35 n-desktop postfix/smtpd[1767]: connect from bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
Jul 30 04:13:36 n-desktop postfix/smtpd[1767]: 4301120099C: client=bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
Jul 30 04:13:36 n-desktop postfix/cleanup[1785]: 4301120099C: message-id=<BAY152-W44EC028D90D70E4B45669AC9370@phx.gbl>
Jul 30 04:13:36 n-desktop postfix/qmgr[1757]: 4301120099C: from=<someone1243@hotmail.com>, size=1373, nrcpt=1 (queue active)
Jul 30 04:13:36 n-desktop postfix/virtual[1786]: warning: recipient name1@domain1.com: not found in virtual_gid_maps
Jul 30 04:13:36 n-desktop postfix/virtual[1786]: 4301120099C: to=<name1@domain1.com>, relay=virtual, delay=0.9, delays=0.81/0/0/0.09, dsn=4.3.5, status=deferred (mail system configuration error)
Jul 30 04:13:37 n-desktop postfix/smtpd[1767]: disconnect from bay0-omc3-s6.bay0.hotmail.com[65.54.190.144]
mail.warn:
Quote:

Jul 30 04:13:36 n-desktop postfix/virtual[1786]: warning: recipient name1@domain1.com: not found in virtual_gid_maps

I followed all official instructions, but dramas. What could the issue be? Whats virtual_gid_maps? Any help would be appreciated!

Kind regards.

lithos 07-30-2011 02:20 AM

Hi,

As I can see you have not correctly entered the Virtual emails in your /etc/postfix/virtual.
Because of the "main.cf configuration has:
Code:

virtual_alias_maps = hash:/etc/postfix/virtual
you must define the e-mail aliases in this "virtual" file, like:
Code:

email@address.com  username1
anotheremail@example.net  username22

But of course the users must be created before they can receive any mail, the best to do so is:
Code:

useradd -s /sbin/nologin -d /home/users/username1  username1
passwd  username1

Note: this is 2 commands to create a local user and then define a password for (/home/users/username1 username1 <-- this is meant twice, because the first part is the directory and the second is the user's name to login for email)

I hope I written this so you understand what I meant to say.

good luck


All times are GMT -5. The time now is 11:19 PM.