LinuxQuestions.org
Visit Jeremy's Blog.
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-26-2003, 11:14 PM   #1
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Rep: Reputation: 15
can't get postfix to work


Hey all when i try to run postfix i get an error message that says

My hostname localhost is not a fully qualified
name - set myhostname or mydomain in /etc/postfix/main.cf

I have no idea what i'm doing, all i want to do is send outgoing mail.

Please help, if you need my config file, i'll be glad to post it.
Thanx
 
Old 07-26-2003, 11:27 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Where are you getting that message, and what are you trying to do when it appears? If your hostname is not defined correctly in your main.cf you likely won't be able to receive mail, however sending should not be comprimised (as long as postfix starts..).

Did you install it or did it come pre-installed on your distro? What distro are you running?

Cool
 
Old 07-27-2003, 04:41 AM   #3
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
I am running red hat 9. It came pre-istalled with my distro. It gives me that message when i type "postfix" at the terminal, and when I type "postfix start" ...thanx masterC
 
Old 07-27-2003, 04:41 AM   #4
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
I am running red hat 9. It came pre-istalled with my distro. It gives me that message when i type "postfix" at the terminal, and when I type "postfix start" ...thanx masterC
 
Old 07-27-2003, 04:41 AM   #5
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
I am running red hat 9. It came pre-istalled with my distro. It gives me that message when i type "postfix" at the terminal, and when I type "postfix start" ...thanx masterC
 
Old 07-27-2003, 04:46 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ok, that's ok, you can set a hostname if you'd like, whatever you want to set it to is probably fine, maybe something like:
klintonrayrocks

Or something

But either way, let's make sure it's starting postfix (probably is), as root open up a terminal and type:
ps aux | grep postfix
And post up what you get.

Cool
 
Old 07-27-2003, 05:54 AM   #7
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
LoL...thanx masterC...this is what i get:
root 4975 0.0 0.0 3572 640 pts/0 S 3:51 0:00 grep postfix
Thanx again man..you all are awesome!!
 
Old 07-27-2003, 05:56 AM   #8
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
Also I haven't set a hostname yet....would i do that in the config file? Should I do that? Thanx again.
 
Old 07-27-2003, 05:57 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69


Well that's only pulling up the grep, so let's do a peek on it all if you can. Just post it all up:
ps aux

Also, I'm expecting you are running this after using the command (even though there are errors, that you might look into fixing from my above suggestion ):
postfix start

Cool
 
Old 07-27-2003, 07:00 AM   #10
klintonray
Member
 
Registered: Apr 2003
Location: Phx, AZ
Posts: 61

Original Poster
Rep: Reputation: 15
Hey dude, I think I don't understand what you are asking me to do plus I have a ton of other questions and you sound like just the person to talk to. Anyway, it's like 5 am and I am going home to go to bed because this is madness being at my office at 5 in the morning. Anyway, do you think there is a chance that I could talk with you over the phone on Sunday when I come back to the office. I will make and pay for the long distance call. My email address is klintonkerber@prodigy.net .... so that you don't have to post your phone number here. Anyway, that would be incredible if I could talk with someone about all I'm doing because I have a billion questions and I can't seem to find anyone in Arizona who knows anything about linux. Also I could send you an invite to do a VNC sort of thing too. Thanx again C.
 
Old 07-27-2003, 07:15 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Whoa! Sure, it's 5 here too, so I guess we are on the same time zone, good deal.

As far as a knowledgable Arizonian, I believe there are a few members from Arizona, the first 2 that pop into mind (I think?) are Stephanie and Moses. Not sure how close they are to ya, and you also might have a LUG that is in your area as well, LUGS really are great things for linux people, oh:
LUG = Linux User's Group
For example, I live on an island called Whidbey, so my users' group is: Whidbey Island Users Group:
www.wlug.net
You might be able to find your LUG from google.

Anyway, yeah, I'm up for a telephone call, if you've got IM capabilities that might be an alternative if you're interested. I'll beam you an email and see how ya feel about either.

Cool
 
Old 08-10-2003, 10:45 PM   #12
lovely_redrose
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
postfix-unable to send mail outside domain

Dear Members.......

I need help urgently with postfix. I have installed RedHat 8.0 with Postfix, Fetchmail and Procmail. Im constantly connected to the internet thru a ADSL modem.

My prob is this: I have to setup up my mail server to send and receive mail through an external mail server (=mail.xxxxx.com.my) (provided by my ISP). Users in my network should connect to my mail server (mars.xxxxx.com.my) to send and receive mails. I am not able to send mail to any other domain (e.g yahoo, hotmail,etc) outside my own network.

I am able to receive mail from anywhere, within and outside my network (fetchmail is working fine).

I have read through numerous mailing lists but am still unable to find a solution. This is the error msg in my log file:
Aug 11 10:15:57 mars postfix/smtp[1878]: 2EA593789C: to=<sharmila_rajagopal@yahoo.com>, relay=mail.xxxxx.com.my[202.157.185.130], delay=7, status=bounced (host mail.xxxxx.com.my[202.157.185.130] said: 550 not local host yahoo.com, not a gateway)

1. Below is the output of postconf -n

[root@mars root]# postconf -n

mydomain = xxxxx.com.my
myhostname = mars.xxxxx.com.my
relayhost = mail.xxxxx.com.my
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10

disable_dns_lookups = no
inet_interfaces = all
mynetworks_style = class

local_destination_concurrency_limit = 5
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES

sample_directory = /usr/share/doc/postfix-1.1.11/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_always_send_ehlo = yes
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
transport_maps = hash:/etc/postfix/transport

2. etc/postfix/transport contains this: xxxxx.com.my smtp:mail.xxxxx.com.my

3. And the output of #hostname is mars.xxxxx.com.my

4. port 25 at my ISP is not closed.

p/s even if i changed
disable_dns_lookups = no to yes (as suggested in some lists), my problem is still not solved.

thank you in advance.
 
  


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 send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Configuring postfix to work on a LAN zulu8300 Linux - Software 4 06-22-2004 02:42 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM
How to setup Postfix to work with POP3 server? dwynter Linux - Software 0 07-03-2002 08:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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