LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2003, 08:55 AM   #1
macfive
LQ Newbie
 
Registered: May 2003
Posts: 5

Rep: Reputation: 0
Unhappy 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!

Last edited by macfive; 05-03-2003 at 08:59 AM.
 
Old 05-03-2003, 09:12 AM   #2
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
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!
 
Old 05-03-2003, 10:44 AM   #3
macfive
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 05-03-2003, 12:19 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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)
dnl This is the macro config file used to generate sendmail.cf
dnl file. If you modify this file you will have to regenerate 
dnl sendmail.cf by running this macro config through the m4
dnl preprocessor:
dnl
dnl        m4 /home/phil/Documents/sendmail.mc > /etc/sendmail.cf <--Change to your path
dnl
dnl You will need to have the sendmail-cf RPM installed for this
dnl to work, if you use an rpm build of sendmail
dnl
dnl include(`../m4/cf.m4')
dnl
dnl If you compile sendmail from a tarball, use the include above.
dnl In this setup, you should create the file as cf/cf/config.mc 
dnl (in the sendmail source tree: eg. /usr/src/sendmail-8.11.6/cf/cf
dnl Now give the command "sh Build config.cf".  Now copy the file
dnl config.cf as /etc/mail/sendmail.cf (please backup first!)
dnl
dnl If you are using the RPM build of sendmail, use the 
dnl include statement given below instead
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confCF_VERSION',`dialup-1.3')
define(`SMART_HOST', `smtp.yourisp.com') <--Change this
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTO_IDENT',0)
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`confCON_EXPENSIVE',true)
define(`confDELIVERY_MODE', `queued')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`ALIAS_FILE',`/etc/mail/aliases')
MASQUERADE_AS(`yourisp.com') <--Change this
FEATURE(`masquerade_envelope')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(`use_ct_file')
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`access_db')
FEATURE(`blacklist_recipients')
FEATURE(`accept_unresolvable_domains')
FEATURE(`accept_unqualified_senders')
dnl FEATURE(`relay_based_on_MX')

Last edited by fancypiper; 05-03-2003 at 12:22 PM.
 
Old 05-03-2003, 01:30 PM   #5
macfive
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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?
 
Old 05-03-2003, 01:47 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I (attempt to) play the uillean pipes. See my page for more details than you want to know.
 
Old 05-03-2003, 07:11 PM   #7
macfive
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 05-03-2003, 07:53 PM   #8
macfive
LQ Newbie
 
Registered: May 2003
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 05-03-2003, 10:08 PM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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)

Last edited by DavidPhillips; 05-03-2003 at 10:47 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Being on the Bleeding edge of OSS ? Kamikazee Linux - Software 1 07-20-2005 05:03 AM
Why - bleeding edge SW Artik Debian 7 05-24-2005 11:27 AM
GC 89 EDGE Card cheddise Linux - Newbie 0 03-01-2005 05:58 PM
Bleeding-edge distros? rl5 Linux - Distributions 9 04-14-2004 12:06 AM
Moving the Slit Away from the Edge Shtarker Linux - Software 3 02-11-2004 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:03 AM.

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