Solved

Making Postfix activated over Sendmail, how?   How to test email sending?

Posted on 2006-07-08
6
345 Views
Last Modified: 2010-03-18
Hello!   everyone,

I have a brand new Web Server (www.tunefind.org), and it is collocated to an ISP (Internet Service Provider) near my office.   The IPS suggested me to use Postfix rather than Sendmail for Mail Transport Agency.   Right now, I have a temporarily setup that the ISP's other host machine play the role of MTA (Mail Transport Agent) as the name of "mail.tunefind.org".   It was fine for a little while, but I have a desire to send and receive emails directly from the own Web Server machine (64.214.83.249 - www.tunefind.org).  

Then, I started my challenge to configure Postfix Mail server.   I learned that,
   /etc/postfix/main.cf
is the configuration file about most control over Postfix.   Then I learned that,
   /usr/sbin/postfix start
makes activate Postfix deamon.   Now, at least on that Server machine, Postfix deamon is running.   As shown below.  
   /var/log/maillog

The first problem is there is a competetion between Sendmail and Postfix in the machine, and I don't know how to fix only to the Postfix as MTA.

The second problem is that I don't know how to test email-sending and receiving while another machine is currently assigned the role of "mail.tunefind.org".   At least I want to send email out from (64.214.83.249 - www.tunefind.org), but I do not know any way to test it.

I think I have to go through many challenges, but please advice me piece by piece of knowledge I have to learn and know, to fulfill my goal.   Thank you !   I attach my DNS report status, so that you, experts, may suggest the health of my domain's setting.

http://www.dnsreport.com/tools/dnsreport.ch?domain=www.tunefind.org

Here is a little bit of /var/log/maillog,

Jul  8 17:17:13 biwa postfix/postfix-script: stopping the Postfix mail system
Jul  8 17:17:13 biwa postfix/master[5792]: terminating on signal 15
Jul  8 17:17:19 biwa postfix/postfix-script: starting the Postfix mail system
Jul  8 17:17:19 biwa postfix/master[6338]: daemon started -- version 2.0.11

END

.  
0
Comment
Question by:mkido
  • 4
  • 2
6 Comments
 

Author Comment

by:mkido
ID: 17066640
I have been reading "www.postfix.org" documentation, but up to now, I didn't find a clear method about switch from Sendmail to Postfix, nor I found easy command line test method to send email from Postfix.    
0
 

Author Comment

by:mkido
ID: 17066653
The machine's OS version is Linux FedoraCore1 Yarrow (2003).
0
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 60 total points
ID: 17068736
first of all postfix was meant to actually be easily migratable from sendmail.  This causes problems when both are installed.  Each have a sendmail binary they use (each different) so if sendmail was installed first, then postfix.  Postfix tries to use Sendmail's sendmail and screws up.  This can only be fixed (at least in my experience as of yet) to uninstall both Sendmail and Postfix, then install Postfix.  Unless something specifically references Sendmail for some reason there shouldn't be an issues in doing this


When the postfix daemon dies so quickly like that, it generally means there is a problem with one of the config files.

do the following first off
cat /etc/syslog.conf | grep -i mail
so we can see exactly where all of the mail logging is going.  Because there should be something in the logs saying what is causing the crash.  If we can't find anything there, then we'll move to the master.cf and main.cf config files
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 

Author Comment

by:mkido
ID: 17070446
Thank you, Cyclops3590

I somehow understand the tight relationship between Sendmail and Postfix.   That is a very good suggestion for Email server newbie like me.   I am reading mail log at,

   /var/log/maillog

And I see that maillog tells everything about what is going on.   Let me check your command line too.   One moment.
0
 

Author Comment

by:mkido
ID: 17086610
I looked into /etc/syslog.conf, and as I thought all mail log in my case goes to,

   /var/log/maillog

Based on the error messages in maillog and I did trial and errors, then finally sendmail sent my emails out.   So, I got what I wanted.   And I stopped working on Postfix.   Sendmail isn't bad, especially when a m4 macro is available (sendmail.mc file).  
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17086716
Well at least its working.  I have absolutely no experience in Sendmail, but I know plenty of experts on EE do so if you ever need help in that area, don't hesitate
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now