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.
I am not a Linux guru...especially about sendmail. Is there a place in the config file for sendmail where I should enter the IP of server provided by my ISP?
I did some researching on setting up sendmail so that it will relay to my ISP, however my ISP uses port 587 with "Password, transmitted insecurely". I do not believe my setup included the port setting or specified the type of authorization. Is this something simple in either the access file and/or the sendmail.mc file?
Here is my access file setting:
# 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...
# Connect:localhost.localdomain RELAY
# Connect:localhost RELAY
# Connect:127.0.0.1 RELAY
The address of the sender (me) is todd@aristesoftware.com
No, you're not. You're sending email as "root@localhost.localdomain". Your domain name may be toddcary.com or aristesoftware.com but not both as they currently point to separate IP addresses.
Quote:
Originally Posted by rtcary
My local server is www.toddcary.com
When Sendmail (or any MTA) starts up it tries to determine the fully qualified domain (FQDN) name by reading /etc/hosts and your server is known as "localhost" or "localhost.localdomain" in full. What you need is to do is enable the MTA to resolve the IP address b****9.b****e.com resolves to to www.toddcary.com in /etc/hosts.
Thank you for your patience. My Centos server has been running for years as a place to test my website development, so outside of doing backups and minor file maintenance, I NEVER have to touch the server (wish I could say that about Windows). Now I am doing some work with Concrete5 that requires sendmail (my mail object in php gets me by otherwise).
So, here is my hosts file:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost centos5
What line should I add to it? My IP is 216.228.174.9 .
I did some researching on setting up sendmail so that it will relay to my ISP, however my ISP uses port 587 with "Password, transmitted insecurely". I do not believe my setup included the port setting or specified the type of authorization. Is this something simple in either the access file and/or the sendmail.mc file?
SMTP traditionally uses port TCP/25. The MSA uses port TCP/587, see http://en.wikipedia.org/wiki/Mail_submission_agent for a short intro (and reason why your ISP should adhere to RFCs and allow port TCP/25) and /etc/mail/submit.mc for local config (which you never should have to change anyway) and if you would want to verify open ports: 'pgrep sendmail | xargs -iX lsof -Pwlnp 'X' -a -i;'.
After fixing your 'root@localdomain' issue this should be the next one to work on.
Quote:
Originally Posted by rtcary
My local server is www.toddcary.com while my domain name on my ISP's server is aristesoftware.com Needless to say, I am confused about what to change and where.
When Sendmail starts up it tries to determine the fully qualified domain (FQDN) name by reading /etc/hosts. If you MASQUERADE_AS(`www.toddcary.com')dnl then add the correct IP + host name entry for www.toddcary.com in /etc/hosts and restart Sendmail.
What is the correct syntax for adding "...then add the correct IP + host name entry for www.toddcary.com in /etc/hosts and restart Sendmail." to hosts?
Just like the rest of the file. One IP address, one or more tabs or spaces, one fully qualified domain name, one or more tabs or spaces, one alias, one return.
Code:
cat -A /etc/hosts
shows "^I" for tabs and displays $ at end of each line.
I believe I am missing something in the hosts file syntax:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost.localdomain localhost centos5
216.228.174.9 toddcary.com localhost
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.