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 05-04-2015, 06:08 PM   #1
vjy
Member
 
Registered: Oct 2004
Posts: 31

Rep: Reputation: 0
postfix email not working in Oracle Linux


I have setup postfix in Oracle Linux VM in virtualbox to test simple email sends that I am sending it to my personal email.

I have configured the following in main.cf file

myhostname = abc.testserver.org
myorigin = $myhostname
inet_interfaces = localhost
#relayhost = localhost.localdomain - I have this commented as of now, but I tried with the localhost.localdomain, IP address and none worked. I also do not have my ISP's server details and I also do not want to use it.

I checked the /var/log/maillog and I see the following

Code:
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: from=root, size=72, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, relay=root@localhost
May  4 17:25:37 oim sendmail[31685]: t44LPbSn031685: from=<root@localhost.localdomain>, size=378, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: to=abc@abc.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t44LPbSn031685 Message accepted for delivery)

I can also see the messages in /var/spool/mqueue/. The telnet to the localhost 25 port also works. Is any of the config settings wrong?

Thanks.
 
Old 05-05-2015, 12:41 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by vjy View Post
I have setup postfix in Oracle Linux VM in virtualbox to test simple email sends that I am sending it to my personal email.
I have configured the following in main.cf file

myhostname = abc.testserver.org
myorigin = $myhostname
inet_interfaces = localhost
#relayhost = localhost.localdomain - I have this commented as of now, but I tried with the localhost.localdomain, IP address and none worked. I also do not have my ISP's server details and I also do not want to use it.
So...you've got a VM system running, and have told it to accept email, and don't tell it HOW TO DELIVER THEM, and you don't know why it won't send??? Unless you define SOME sort of server upstream, be it a smart host or using your ISP's SMTP server, what do you expect it to do?? Unless you fully configure your server with an MX record, DNS, and everything else it needs to be a server.domain.com system, it has no way of delivering mail.
Quote:
I checked the /var/log/maillog and I see the following
Code:
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: from=root, size=72, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, relay=root@localhost
May  4 17:25:37 oim sendmail[31685]: t44LPbSn031685: from=<root@localhost.localdomain>, size=378, class=0, nrcpts=1, msgid=<201505042125.t44LPbKA031684@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
May  4 17:25:37 oim sendmail[31684]: t44LPbKA031684: to=abc@abc.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30072, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t44LPbSn031685 Message accepted for delivery)
I can also see the messages in /var/spool/mqueue/. The telnet to the localhost 25 port also works. Is any of the config settings wrong?
You've been using Linux for ELEVEN YEARS now...being able to read the documentation on postfix should be something you can do. Also, since you're using Oracle Linux (which is NOT FREE), have you contacted Oracle support for help????
 
Old 05-05-2015, 04:08 PM   #3
vjy
Member
 
Registered: Oct 2004
Posts: 31

Original Poster
Rep: Reputation: 0
Fair enough reply TB0ne. Even though I started with Linux 11 years ago, I did not work on it for the whole period and did not do anything admin related or installs.

Anyway, I was not sure if I could use my ISP server for testing and wanted to check if there is any other way.

But I just found another email server this afternoon that I am planning to use(devNullSMTP) and it accomplishes what I need to.

Thanks again.
 
Old 05-06-2015, 02:34 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by vjy View Post
Fair enough reply TB0ne. Even though I started with Linux 11 years ago, I did not work on it for the whole period and did not do anything admin related or installs.
Except for the questions you posted in 04, 08, and 10?
Quote:
Anyway, I was not sure if I could use my ISP server for testing and wanted to check if there is any other way.
You can find out if you can use your ISP's server, by calling your ISP. And the "other way" is to configure a smart host or some other server to relay the messages to. Very obviously, unless you have some route/destination for emails, they won't go anywhere.
Quote:
But I just found another email server this afternoon that I am planning to use(devNullSMTP) and it accomplishes what I need to.
...and what it accomplishes is exactly what you already have with postfix/sendmail/mailx. What's the point in installing some slow Java program to duplicate that functionality??? Again, unless you define SOMEWHERE for that mail to go, it will only EVER be local.

Again, as said before: read the postfix documentation about configuring a single smarthost (very simple, and amply documented with examples), or use mailx, and just put your ISP info in the config file. And HAVE YOU CALLED ORACLE SUPPORT, since you're paying for it???
 
  


Reply

Tags
postfix


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
Nagios / Postfix / Centos 6.4 working on email notifications Vafri Linux - Server 1 10-09-2013 04:22 AM
Postfix email sending program not working aplusguy333 Linux - Newbie 2 10-17-2011 03:53 AM
copy and forward email to multiple email servers using postfix haleem Linux - Newbie 1 12-31-2009 05:28 AM
Email Stops Working w/ Procmail (Postfix) carlosinfl Linux - Server 2 03-26-2008 06:28 PM
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 05:43 AM


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