LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-30-2011, 01:27 AM   #1
Aquachip
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
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.

Last edited by Aquachip; 07-30-2011 at 01:31 AM.
 
Old 07-30-2011, 02:20 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: how a linux refugee can navigate text on OSX like a boss LXer Syndicated Linux News 0 05-14-2011 08:51 PM
Refugee from MS Windows (THANK YOU...Linux developers and community!!!) waynemichael LinuxQuestions.org Member Intro 1 10-16-2010 04:38 AM
LXer: Microsoft and Linux Foundation unite on warranty issue LXer Syndicated Linux News 0 05-21-2009 02:40 AM
refugee, twice relocated Snood LinuxQuestions.org Member Intro 4 04-22-2009 02:53 PM
another Refugee from Microsoft Castanea_d. LinuxQuestions.org Member Intro 3 05-09-2007 02:46 PM


All times are GMT -5. The time now is 02:25 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration