Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
We normally run our servers with sendmail disabled, but we now have a need to route some mail to a mail server within our company for distribution. The mail however is not leaving the server ???
I have verified access to the mail server from each server we are trying to send mail from.
The sendmail config file contains:
cat /etc/sysconfig/sendmail
DAEMON=no
QUEUE=15m
I've added the Smart Relay to the sendmail.cf file:
# "Smart" relay host (may be null)
DSmailhost.mailserver.com
....
We normally run our servers with sendmail disabled, but we now have a need to route some mail to a mail server within our company for distribution. The mail however is not leaving the server ???
I have verified access to the mail server from each server we are trying to send mail from.
The sendmail config file contains:
cat /etc/sysconfig/sendmail
DAEMON=no
QUEUE=15m
I've added the Smart Relay to the sendmail.cf file:
# "Smart" relay host (may be null)
DSmailhost.mailserver.com
....
Looks to me that u have not configured sendmail to work, yes u have started the service, but what are the settings to allow mail to flow check on /etc/mail/access, what is in that file. u need to allow your network ips to be accepted to send mail out. Good luck.
The /etc/mail/access server contains:
# cat ./access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
i see from the logs that the localhost is not allowed to pass mail though,and "u are also using an old version, u need to update". In the old version we use ip_allow file in /etc/mail, there is also a file called sendmail.mc which u need to go through to allow 127.0.0.1, can u also do "nmap -sS 127.0.0.1" see what ports are open, then also do the same for the ip u have given the network card(s). But, if u can, update to the new sendmail (dont know what unix/linux version) u are using but u need to upgrade to the new version, and that will be easy to work with, and pliz note that in the new version they have dropped "ip_allow", and are using "access" file, and the format for allowing is "Connectip address) RELAY" in that order, pliz note that also in the sendmail.mc file after making any changes, u need to recompile it using the command "make -C /etc/mail" then restart the service.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.