Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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????
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.
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???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.