LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2003, 10:57 PM   #1
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Rep: Reputation: 30
postfix main.cf


i have been trying to use this link
http://www.redhat.com/support/resour...WTO/book1.html
to configure my mail server but this article is not matching the /etc/postfix/main.cf file that i have on my machine there are a few things that are different. all of this myhostname gethostname mydomain getdomainname blablablablabla is really annoying, and really confusing even after reading through some of the postfix site. now i admit im not the smartest person alive thats for sure but if i could find a accurate step by step article for my config.cf file like the link above I'm sure i could get my mail server to work right.

i tried to configure both by hand and with webmin but webmin makes it even more confusing. i cant even imagine what sendmail or qmail is like to configure there suppose to be harder from what i have read.

does someone have a suggestion for a better tutorial.
thanks,
AD
 
Old 07-17-2003, 11:15 PM   #2
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Their are tons of them

You can search for postfix howto

you can check the postfix documentation site. You can read the man pages.

http://www.postfix.org/docs.html

You are trying to do something that is very hard. If you want I can even send you a howto I made up (Have not put up a website yet).

First of all MTA's are confusing and you need to take it slow. It's now like you just slap one together and then go on about your business. Their are so many options it's crazy so you need to take your time and really understand how a MTA works. You need to know the terminoligy and also how it works with the rest of the world (DNS).

I would be glad to help you, I Just need more specific questions.

Road
 
Old 07-17-2003, 11:54 PM   #3
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
hey road,

thanks for the reply i think maybe i have been rushing this a little fast now that u mention it.

anyways im going to go back and read more carefully through the postfix site. i was just messing around with something very very cool
http://xhz.freeshell.org/texts/smtp.html i think this is a good place to start too.

hey i wouldnt mind that tutorial of yours schrock321@charter.net

thanks again, i dont feel so alone now,
AD
 
Old 07-18-2003, 12:47 PM   #4
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
That does seem like a good place to start. I have been using postfix for over a year and I am still learning about it. I will send you the howto but be warned it is a little dated it was for RH 7.2 with postfix 1.11.

Good news is a coworker just used it to set up a postfix 2 on a RH 9 system without a problem.

Email sent.
 
Old 07-19-2003, 04:50 PM   #5
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
when telneting into my server i keep getting "250 Ok: queued as 13BA674849" after i send the mail. it is sending mail i verified that much.

i can send mail but i cant recieve mail. im not sure why.

in the main.cf file i have tried uncommenting
mynetworks = 127.0.0.0/8, ***.***.***.***/***
and adding my LAN ip range, but this doesnt seem to to do anything for me. i am behind a firewall running NAT could this be the problem?

thanks for any advise,
AD

[joe@schrock321 joe]$ telnet www.schrock321.com 25
Trying 127.0.0.1...
Connected to www.schrock321.com.
Escape character is '^]'.
220 smtp postfix
helo
help
501 Syntax: HELO hostname
502 Error: command not implemented
helo schrock321
250 schrock321
mail from:joe@schrock321.com
250 Ok
rcpt to:illtbagu@charter.net
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
this is a test from home
.
250 Ok: queued as 13BA674849
421 Error: timeout exceeded
Connection closed by foreign host.
 
Old 07-19-2003, 08:09 PM   #6
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
i almost forgot my error log

Jul 19 18:04:26 schrock321 postfix/master[4183]: daemon started
Jul 19 18:04:26 schrock321 postfix/pickup[4186]: warning: My hostname schrock321 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
Jul 19 18:04:26 schrock321 postfix/nqmgr[4187]: warning: My hostname schrock321 is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf
 
Old 07-21-2003, 12:29 PM   #7
Road
Member
 
Registered: Jan 2002
Distribution: Debian Based only but have tried most others.
Posts: 82

Rep: Reputation: 15
Well first lets fix the problem in your error log. You need to modify this line in your main.cf

myhostname =

Make it a fully qualified hostname. A fully qualified name contains 2 things a computer name and a domain name.

computer1.domain1.com

So if your domain is schrock321.com a common way of doing it would be

myhostname = mail1.schrock321.com



Ok that should get ride of that one problem and trust me it's very important to get that part right.

Next thing lets see if your mail is just getting qued up.

Type mailq and see if you have a bunch of messages waiting for delivery.

Also please describe your testing to see if you are recieving mail. You may want to try and send to yourself before you send out to another domain. What I mean is try and send to a local user and see what happens. You DNS has to be correct if you want to send out and you also have rely on that the other mail server is not blocking you.

Road

Last edited by Road; 07-21-2003 at 12:31 PM.
 
Old 07-21-2003, 12:41 PM   #8
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
See the link in my sig for a great HOWTO on postfix and spamassassin.
 
Old 07-21-2003, 11:35 PM   #9
illtbagu
Member
 
Registered: Dec 2002
Location: Nevada
Distribution: fedora, RHEL, ubuntu, suse
Posts: 343

Original Poster
Rep: Reputation: 30
thanks road that did it. no more errors of that nature. I'm going to try some stuff out before i ask anymore questions. i really appreciate your help

nice link Pcghost very nice. i am going to finish reading that tomorrow my eyes are popping out of my head right now .
 
  


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
postfix - main.cf & config varun_saa Mandriva 1 09-12-2005 11:15 AM
It that possible to use the default "main.cf" setup the Postfix? goonfui_wong Linux - Networking 3 06-22-2005 07:32 AM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
POSTFIX main.cf question tuantran Linux - Networking 2 06-16-2002 05:41 PM

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

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