Sendmail drivng me over the edge!
I need help bad! I have spent the last 3 nights to the wee hours of the morning trying to configure sendmail to work with mindspring.com dsl connection. I am only able to send mail to myself; anything other than myself does not get delivered. I suspect it is because of my mail headings? Here is what the headings state in the mail that I do get:
Status: U Return-Path: <celticr@celticradio.net> Received: from scottishradio.net ([66.149.54.34]) by niles.mail.mindspring.net (Earthlink Mail Service) with ESMTP id 19bXiZle3Nl3pm0 for <macfive@mindspring.com>; Sat, 3 May 2003 09:43:56 -0400 (EDT) Received: from scottishradio.net (localhost.localdomain [127.0.0.1]) by scottishradio.net (8.12.8/8.12.8) with ESMTP id h43DfYbo011760 for <macfive@mindspring.com>; Sat, 3 May 2003 09:41:34 -0400 Received: (from celticr@localhost) by scottishradio.net (8.12.8/8.12.5/Submit) id h43DfYa9011758; Sat, 3 May 2003 09:41:34 -0400 Date: Sat, 3 May 2003 09:41:34 -0400 Message-Id: <200305031341.h43DfYa9011758@scottishradio.net> To: macfive@mindspring.com Subject: sadsda From: webmaster@celticradio.net Here are the problems I have identified: celticr@celticradio.net should be webmaster@celticradio.net celticr@localhost localhost.localdomain [127.0.0.1]) Is there anyone here with knowledge on how to get this to work with ISP that block port 25 and make you use their own mail server (mail.mindspring.com). At this point I am even willing to pay someone to configure this for me otherwise I am going to go over the edge! Either that or it will drive me to drink!!! Well, the only good thing about this is I have learned a ton about configuring the sendmail files, but since I am a newbie at sendmail I don't think I can get much further without some direction, someone's help or a good book. Thanks! |
You can't really do anything if they block outgoing port 25 since other mailservers are listening on that port.
Use their SMTP servers as relay host - there is no other working option in your case! |
Yes, I am using the smtp server option but it is putting in a bunch of header information that I think is causing it to fail to other ISP's.
I can send an email to myself but that is about it. |
You need to configure it to use "smarthost". Check out Suresh Ramasubramanian's email guide.
# Common e-mail tools sendmail - postfix - sends mail to local users (and internet when configured correctly) fetchmail - gets mail from internet accounts (non-Hotmail type) procmail - sorts and delivers into separate mailboxes mutt - mail client that sucks less than all the others Email the Linux Way Suresh Ramasubramanian's email guide The Linux Mail User HOWTO The Linux Electronic Mail Administrator HOWTO My config file (change the lines with <-- to your situation) Code:
divert(-1) |
Thanks for all of the links and the example .mc file. I am going to try this all tonight and will let you know how I make out. I can tell you that my .mc does not have nearly as much entries, so maybe there is hope yet.
I am going to be doing some programming with PHP for my site and unforuntately the only mail option is sendmail. For Win32 they can just put in the smtp server name and they are done (in the php.ini file). I'll write back and let you know how I made out. You don't play the pipes by chance do you? |
I (attempt to) play the uillean pipes. See my page for more details than you want to know.
|
Wow, how ironic. I run an internet radio station called CelticRadio.net . We play big mix of Irish, Scottish, Celtic and Gaelic music. We even accept CD's from anyone that wants to get airplay.
Right now our site is kinda in shambles. On 3/17 (St. Patrick's day) it blew up and it was difficult getting services back. We have a great new site planned using PHP with all of the songs and tracks in a MYsql database on the linux box. Well, don't want to get off topic, but drop me a line anytime! Thanks again for the info on sendmail! Paul |
I tried this .mc config file and it still does the same with the headers. I wonder if it is my ISP that is adding this information or sendmail.
Well, looks like I am gong to have to learn sendmail to figure this one out! :study: |
If the problem is that it's blocked you can tell by looking at /var/log/maillog
May 3 20:20:50 zeus sm-mta[1035]: h441KnEV001032: to=<david@domain1.com>, ctladdr=<david@zeus.domain2.com> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30419, relay=mail.domain1.com. [178.34.55.1], dsn=4.0.0, stat=Deferred: mail.domain1.com.: No route to host this can be fixed by adding the isps server to the sendmail.cf before # "Smart" relay host (may be null) DS after # "Smart" relay host (may be null) DSsmtp.safepages.com If you don't need to do this all the time, but only when using this particular isp then set it up as a fallback # fallback MX host O FallbackMXhost=smtp.safepages.com May 3 20:25:26 zeus sm-mta[1053]: h441KnEV001032: to=<david@domain1.com>, ctladdr=<david@zeus.domain2.com> (0/0), delay=00:04:37, xdelay=00:00:01, mailer=relay, pri=120419, relay=smtp.safepages.com. [216.127.146.11], dsn=2.0.0, stat=Sent (Ok: queued as BE4291877E0) now smtp.safepages.com sends it to mail.domain1.com (the email addresses mail server found in dns for david@domain1.com) Now, there is one other problem the email address is not the one you want mail returned to in some cases. In my case this is true. I am sending out on my laptop (zeus.domain2.com) using sendmail the return address and origin by default is david@zeus.domain2.com however this is not where I want it to appear to come from or be returned to. I want it to come from david@domain1.com this is fixed by doing this.... do m4 build with masquerade MASQUERADE_AS(domain1.com) MASQUERADE_DOMAIN(domain2.com) MASQUERADE_DOMAIN(zeus.domain2.com FEATURE(masquerade_entire_domain) FEATURE(masquerade_envelope) |
All times are GMT -5. The time now is 05:43 PM. |