LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to configure postfix main server without having domain? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-postfix-main-server-without-having-domain-918532/)

imsunnyshah 12-13-2011 03:44 AM

how to configure postfix main server without having domain?
 
how to configure postfix main server without having domain?

coolsg5636 12-13-2011 11:25 PM

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.

imsunnyshah 12-14-2011 12:07 AM

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...

coolsg5636 12-14-2011 12:18 AM

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

imsunnyshah 12-14-2011 01:34 AM

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...

linuxmen 12-14-2011 01:48 AM

GO THROUGH http://servercomputing.blogspot.com/...server-in.html

imsunnyshah 12-14-2011 02:06 AM

this is okay but i dont have a AD network or dont have a DNS server too

linuxmen 12-14-2011 02:27 AM

just use any domain name if in a lan.
r u going to use mail service over web or lan ?

linuxmen 12-14-2011 02:32 AM

if u r not using mail service over web just follow
http://servercomputing.blogspot.com/...-in-linux.html

imsunnyshah 12-14-2011 02:34 AM

what to do if there is no domain in lan?

linuxmen 12-14-2011 02:37 AM

just use a domain like yourname.com

imsunnyshah 12-14-2011 02:38 AM

okay i try and told u the result

imsunnyshah 12-14-2011 02:54 AM

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

linuxmen 12-14-2011 03:20 AM

your host name includes invalid charactors, correct it (do not use symbols)

imsunnyshah 12-14-2011 03:23 AM

plz send me main.cf,body_checks and header_checks


All times are GMT -5. The time now is 06:44 PM.