sendmail problem, sends ok but the receiver doesn´t receive
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
sendmail problem, sends ok but the receiver doesn´t receive
I`m using fedora 10 and acording to the sendmail log, the sendmail server accepts the message for delivery but doesn`t send it.
Any ideas what might be the problem or how to troubleshoot?
I entered the following commands:
[ ~]# dig gmail.com mx
;; ANSWER SECTION:
gmail.com. 1609 IN MX 40 alt4.gmail-smtp-in.l.google.com.
gmail.com. 1609 IN MX 5 gmail-smtp-in-v4v6.l.google.com.
gmail.com. 1609 IN MX 30 alt3.gmail-smtp-in.l.google.com.
gmail.com. 1609 IN MX 20 alt2.gmail-smtp-in.l.google.com.
gmail.com. 1609 IN MX 10 alt1.gmail-smtp-in.l.google.com.
;; ADDITIONAL SECTION:
gmail-smtp-in-v4v6.l.google.com. 98 IN A 173.194.77.27
alt3.gmail-smtp-in.l.google.com. 17 IN A 173.194.73.26
alt2.gmail-smtp-in.l.google.com. 199 IN A 173.194.76.26
alt1.gmail-smtp-in.l.google.com. 208 IN A 74.125.130.27
alt4.gmail-smtp-in.l.google.com. 23 IN A 173.194.66.26
My first guess without seeing the maillog would be that you are trying to use Google's mail gateway from your server. Most sites do not allow external servers to relay through them. If you are using a Gmail account, then my guess is that you should have software like Thunderbird or Evolution and set up to use Google's mail servers rather than your local server.
It is possible that gmail is accepting the message but just dropping it. Most properly run email gateways will not accept email from unknown mailers. Usually, they rely on the MX records in the domain or the SPF records. This validates the sender as coming from a legitimate mailer. If you are sending email out as localhost.localdomain6, my guess is that they are being accepted but dropped. If you are going to use this server as an email system, then it needs to have a legitimate domain name and registered in DNS with at minimum an MX record but better still with SPF records.
I don't see any errors inside the maillog. But croftale is right that the domain name you are sending from would normally be blocked by any mail server.
Where I must contradict croftale is that one needs a valid MX record for sending mail. Normally mail servers check for an PTR record to verify that the host is who he claims to be. Also SPF might work on it's own.
By the way did you check your spam folder on your gmail account?
Another thing does sendmail show greylisting or other form of delayed transmition?
Might be the problem yes.
I will have to try it in a test environment first as the server with the problem is actually working on a client.
I will test and tell you about my findings.
Not certain I understand the issue beingpresented. Is the issue - not able to send email to a gmail account? Or sending email through gmail for a single user OR through gmail for various users on your sendmail box?
If it is the first case, then configuring your sendmail server as previously stated with valid domain name registered/resolvable on the Internet with applicable MX records will do it.
The fact that you 'dig' gmail as an example shows your DNS resolution is good and should be valid for any host you choose to relay host to.
This is not necessarily an answer to a question - but merely me confirming just what the specific ask is.
Yes pkozlenko, the issue is not able to send email to a gmail account, nor to any account, but testing with gmail as is the first testing for the mail sending to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.