LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-22-2013, 04:32 PM   #1
swanny99
LQ Newbie
 
Registered: May 2012
Distribution: CentOS
Posts: 26

Rep: Reputation: Disabled
centos email configuration


I just want to set up email address accounts for a few domains on my server.

Postfix is working and sending out a newsletter. DNS is handled by my server host admin system.

I did this in the postfix main.cf

myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = ip-address/36
relay_domains =
home_mailbox = Maildir/

Then made an account:-
[root~]adduser -s /sbin/nologin info;
[root~]passwd info

restarted postfix

But can not get info@example.com to send or receive emails.

I am likely doing something very basic wrong.

Actually, I am not sure if the above method is really what I am looking for anyway. I have multiple domains and want email accounts for each.
 
Old 01-24-2013, 12:58 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by swanny99 View Post
But can not get info@example.com to send or receive emails.

I am likely doing something very basic wrong.
So how are you trying, and what does /var/log/mail.log (or equivalent) say?
Quote:
Actually, I am not sure if the above method is really what I am looking for anyway. I have multiple domains and want email accounts for each.
As long as the usernames are unique, just list the domains in the mydestination directive.
If you want the same usernames at different domains you should look at the documentation for a virtual domains setup.
Although if it just a couple, this can generally be handled much easier with full-address aliases to unique local usernames.
i.e. map info@domain1.com to info1
info@domain2.com to info2 etc...

Last edited by descendant_command; 01-24-2013 at 01:00 AM.
 
  


Reply



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
CentOS postfix basic email configuration swanny99 Linux - Server 6 07-20-2012 02:11 PM
Email with Postfix,Dovecot & MySQL on CentOS 5-CentOS 6 issues redhat19 Linux - Server 6 05-12-2012 09:15 AM
Setting up CentOS email tibberous Linux - Server 6 01-15-2011 09:23 AM
Need help on Bacula Email configuration. milkies27 Linux - Software 0 06-02-2009 01:29 AM
Email Routing Configuration mahesh.mahajan Linux - Server 10 05-26-2009 03:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration