LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 12-13-2011, 04:44 AM   #1
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Rep: Reputation: Disabled
how to configure postfix main server without having domain?


how to configure postfix main server without having domain?
 
Old 12-14-2011, 12:25 AM   #2
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
Are trying to build a test/local server or is this a production server ?

what do you mean by ?

Quote:
how to configure postfix main server without having domain?
To build a mail server it is not necessary to have a domain, you can use local users or you can create users just to have mail access.

Please provide more information on what exactly you are planning to do with mail server.

Last edited by coolsg5636; 12-14-2011 at 12:27 AM.
 
Old 12-14-2011, 01:07 AM   #3
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
i am learning red hat enterprise linux v5 and in that i have not configure DNS or DHCP servers inspite ofthat i want to configure postfix mail server for my local network

so tell me how do i configure postfix mail server?????????

i have installed folling rpms
1.postfix
2.service-switch-mail

i am abel to send mail to the local user of the RHEL5 server's bt nt abel to send mail to client through mutt...

kindely help me...
 
Old 12-14-2011, 01:18 AM   #4
coolsg5636
Member
 
Registered: Sep 2011
Location: Pune,India
Distribution: RHEL ,CentOS, Fedora
Posts: 100

Rep: Reputation: 25
First of all. Sendmail and Postfix are 2 different MTAs(Mail Transfer Agents).

You cannot use sendmail and postfix at the same time. You first need to change the default MTA.

If you want to change from a Sendmail MTA to Postfix MTA use this command:

Code:
alternatives –set mta /usr/sbin/sendmail.postfix
You should not see any output.

To select an alternative from those MTAs available use this command:

Code:
alternatives –config mta
You will see this output which will allow you to choose an MTA using a number.

Code:
alternatives –config mta
There are 2 programs which provide ‘mta’.

Selection Command

———————————————–

* 1 /usr/sbin/sendmail.sendmail

+ 2 /usr/sbin/sendmail.postfix

Enter to keep the current selection[+], or type selection number:


About your second question,

In order to access your emails through different mail clients, you have to install IMAP/POP Server like dovecot and configure it.

http://rimuhosting.com/support/setti...sp?mta=postfix

Last edited by coolsg5636; 12-14-2011 at 01:19 AM.
 
Old 12-14-2011, 02:34 AM   #5
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
the following things which i had done yet...



1. yum -y install postfix
2. yum -y install system-switch-mail-gnome
3. system > administration > mail transport agent switcher > postfix > ok
4. chkconfig postfix on
5. service postfix start
6. mutt > m(to createmail) > to:root@123.localdomain > subject:test > hiiiiiiiiiii


i receiver this mail in return
X-Original-To: root@VMrhel5.localdomain
Delivered-To: root@VMrhel5.localdomain
Date: Wed, 14 Dec 2011 12:55:29 +0530 (IST)
From: MAILER-DAEMON@VMrhel5.localdomain (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root@VMrhel5.localdomain
Auto-Submitted: auto-replied

[-- Attachment #1: Notification --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.4K --]

This is the mail system at host VMrhel5.localdomain.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

- - 2/2: Mail Delivery System Undelivered Mail Return



i have made no change in main.cf file what to do now...
 
Old 12-14-2011, 02:48 AM   #6
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
Lightbulb

GO THROUGH http://servercomputing.blogspot.com/...server-in.html
 
Old 12-14-2011, 03:06 AM   #7
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
this is okay but i dont have a AD network or dont have a DNS server too
 
Old 12-14-2011, 03:27 AM   #8
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
just use any domain name if in a lan.
r u going to use mail service over web or lan ?
 
Old 12-14-2011, 03:32 AM   #9
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
if u r not using mail service over web just follow
http://servercomputing.blogspot.com/...-in-linux.html
 
Old 12-14-2011, 03:34 AM   #10
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
what to do if there is no domain in lan?
 
Old 12-14-2011, 03:37 AM   #11
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
just use a domain like yourname.com
 
Old 12-14-2011, 03:38 AM   #12
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
okay i try and told u the result
 
Old 12-14-2011, 03:54 AM   #13
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
sendmail: warning: valid_hostname: invalid character 64(decimal): root@VMrhel5.sunny
sendmail: fatal: file /etc/postfix/main.cf: parameter myhostname: bad parameter value: root@VMrhel5.sunny

i got this error when i tried to send mail to local users
 
Old 12-14-2011, 04:20 AM   #14
linuxmen
Member
 
Registered: Aug 2011
Distribution: fedora14,11, RHEL5, CentOS6, win2008R2, Win7
Posts: 45

Rep: Reputation: 4
your host name includes invalid charactors, correct it (do not use symbols)
 
Old 12-14-2011, 04:23 AM   #15
imsunnyshah
LQ Newbie
 
Registered: Nov 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
plz send me main.cf,body_checks and header_checks
 
  


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
Postfix as a mail server for domain LJ151 Linux - Software 3 10-31-2017 05:54 PM
Postfix main.cf local part and domain part variables? mpapet Linux - Server 2 05-24-2010 02:46 PM
second domain on the same postfix server IMAN7 Linux - Server 4 11-24-2009 11:37 AM
[SLES 10 + Yast Mail server] How to disable creation of main domain email addresses? PaperCuts SUSE / openSUSE 1 10-04-2008 02:57 PM
how to configure dovecot&sendmail&postfix to accept other domain email? hocheetiong Linux - Server 3 12-24-2007 04:55 AM

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

All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration