LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-18-2014, 07:08 AM   #1
unclesamcrazy
Member
 
Registered: May 2013
Posts: 200

Rep: Reputation: 1
Send mails on virtual domains of Postfix


There are virtual domains configured in postfix on CentOS to recieve mails.
How can I send mails on these?
I want to configure them in mail client to see received mails.
How can I do this? Please help.

Thank you

Kind Regards
S
 
Old 06-23-2014, 11:36 AM   #2
Andy Alt
Member
 
Registered: Jun 2004
Location: Minnesota, USA
Distribution: Slackware64-stable, Manjaro, Debian64 stable
Posts: 528

Rep: Reputation: 167Reputation: 167
Does this answer any questions?
http://www.linuxquestions.org/questi...ly-4175434043/
 
Old 06-25-2014, 01:06 AM   #3
unclesamcrazy
Member
 
Registered: May 2013
Posts: 200

Original Poster
Rep: Reputation: 1
No, it does not solve my problem.
I want to configure postfix to send and receive mails locally (to every system of local area network). I tried this.
http://www.postfix.org/STANDARD_CONF...ON_README.html (postfix on a local network.)
I do not have domain that's why I do not want to receive mails from out side local network.
I can send it on every domain of the world but I am not able to send and receive it locally because of no domain.
I can send it to other users of same server where postfix is installed but I am not able to send to other systems of LAN.

Please help.

Thank you very much.
 
Old 06-25-2014, 04:41 AM   #4
kbnuts
Member
 
Registered: Apr 2014
Posts: 45

Rep: Reputation: Disabled
As far as I'm aware if you don't have a domain in the mydomain directive in main.cf your mail will just be dropped. however you can set a garbage domain like:
mydomain = wotnot.test

Your LAN will need to know the MX record of the garbage domain so the dns server your LAN is pointing to will need to know this (or you'll need to put it in the hosts file eg: 1.1.1.2 wotnot.test)

Bear in mind if you're sending to a proper bonafide mail server on the internet your mail will likely be treated as spam and binned straight away. if you're sending to another postfix box on your own lan you should be ok.

Sorry if you know all this already.
 
Old 06-27-2014, 04:16 AM   #5
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
You want to configure a mail-server for your Local Area Network. You do not have domain name.
It is a very basic requirement and it can be done easily. As you have already selected postfix, so no need to tell you about installation of mail server.

You have asked in your first post that you want to see local mails in mail client.
Install Squirrelmail for this.
If you have configured your system correctly, you can send mails to other IP's of same network as well as receive too.
All you can do using mail client Squirrelmail

What you have to do.
1) Setup DNS server and add the Mail server MX records in the forward and reverse zone files.
2) You need to add hostname entries in /etc/hosts file.
3) Configure your main.cf
Code:
myhostname = server.test.local
mydomain = test.local
myorigin = $mydomain
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.1.0/24, 127.0.0.0/8
home_mailbox = Maildir/
Restart Postfix.
4) Now install Dovecot
Dovecot is an open source IMAP and POP3 mail server for Unix/Linux systems.
Configure it correctly.
5) Now install and configure Squirrelmail.

Here is complete mail system for your local area network.
 
  


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
Postfix - Send mails to specific domains only sunnysthakur Linux - Server 3 10-30-2012 08:52 AM
how to configure postfix (FD5) to send mails to gmail or any different domains subramanyabs1984 Linux - Server 3 02-26-2009 01:27 AM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
How to make postfix send mails for virtual domains? Chowroc Linux - Networking 0 12-24-2004 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:02 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