LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-23-2006, 07:03 PM   #1
haym37
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Sendmail Issue


I am running Red Hat Enterprise Linux Edition 4 and have recently installed sendmail on a server which I am also using as a web server. For my description, suppose that my hostname is "myhostname" and my domain is "mydomain.com". My issue is that, although mail succeeds in sending to free hosts (such as gmail), it fails at sending to private/paid email hosts. This is because some private ones send a verification back, which fails, causing the original email to bounce. The email was sending as "root@myhostname.mydomain.com", which is what caused the failure. I added the below to sendmail.mc:

MASQUERADE_AS(`mydomain.com')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`always_add_domain')dnl

After running "m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf" and restarting sendmail, the from address is still "root@myhostname.mydomain.com". I then created a generticstable file, etc. (as described at linuxgazette.net/issue58/okopnik2.html), and this caused the below to be in the bounced email:

>>> DATA
<<< 550-Verification failed for <root@mydomain.com>
<<< 550-No Such User Here
<<< 550 Sender verify failed

(That was an improvement from having it be "<root@myhostname.mydomain.com>".) However, the headers (from, reply-to, etc.) still have "root@myhostname.mydomain.com" and the email still bounces.

Any help would be greatly appreciated. Thanks!
 
Old 07-23-2006, 09:30 PM   #2
haym37
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
For reference, I have recently reinstalled sendmail; however, this did not help.
 
Old 07-24-2006, 04:35 AM   #3
smallville
Member
 
Registered: Dec 2005
Posts: 44

Rep: Reputation: 15
what application are you using in sending mail? like, are you using php or your running it directly in console?
 
Old 07-24-2006, 06:54 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I know that this will sound like a trite comment, but it isn't intended as such.

If you cannot find an easy solution to your problem, consider giving postfix a go. It will take next to no time to set up, the you will be able to solve this issue in 2secs flat.


Rgds
 
  


Reply


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
Sendmail issue Anibal Slackware 4 12-08-2005 03:29 PM
sendmail issue... TreyAU21 Linux - Software 1 10-27-2005 12:43 AM
Sendmail Issue! Atif_Khan Linux - Networking 5 02-16-2005 01:05 PM
sendmail issue archangel Linux - Distributions 4 11-14-2002 02:33 AM
sendmail issue archangel Linux - Software 3 11-13-2002 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:16 PM.

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
Open Source Consulting | Domain Registration