LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2007, 07:59 PM   #1
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
sendmail not relaying messages depending upon my location


Hi all,
Ok, i realize that the subject may sound kinda confusing. Basically what is happening is this:
I have my Slackware 12.0 Server at my house, and I go somewhere with my laptop, connect to some random wireless network and get the ip address of 10.10.10.10. I connect to my server using my favorite email client, try sending an email to my gmail account (dragonm15@gmail.com).

My client fails to send the email, giving me the message:
Code:
Message sending failed since the following recipients were rejected by the server:
dragonm15@gmail.com (The server responded: "5.7.1 <dragonm15@gmail.com>... Relaying denied. IP name lookup failed [10.10.10.10]")
I thought it was wierd, so I connected to a different wireless to see if it did the same thing except with a different IP address and it did.

Server end error
----------------
I checked /var/log/maillog and it said:
Code:
Sep 24 17:48:38 myserver sm-mta[23050]: l8P0mck9023050: ruleset=check_rcpt, arg1=<dragonm15@gmail.com>, relay=[10.10.10.10], reject=550 5.7.1 <dragonm15@gmail.com>... Relaying denied. IP name lookup failed [10.10.10.10]
Now, if I add '10.10.10.10 RELAY' to /etc/mail/access and recreate access.db it will work fine with no problems.

However I dont want to have to do this for every place I go. I would like it so I can go wherever I want without having to change config files accordingly.

My sendmail.mc is as follows:
Code:
include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', 
`authwarnings,novrfy,noexpn,restrictqrun,goaway')dnl
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl# define(`SMART_HOST',`mail.server.com')
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
#dnl FEATURE(`accept_unresolvable_domains')dnl
#EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
I realize this says its the default slackware setup, but its not as I'm sure you can tell.

If you have any ideas, please let me know.

Thanks,
DragonM15

Last edited by DragonM15; 09-24-2007 at 08:12 PM.
 
Old 09-24-2007, 08:38 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You wouldn't want sendmail to be an open proxy. Anyway,the thing to do is SMTP AUTH.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
gmplayer displays one of two error messages depending on whether I'm user or root Zim_ Linux - General 1 03-04-2007 03:44 PM
sendmail relaying CuriousOne Linux - Networking 1 08-05-2005 03:43 PM
Sendmail and relaying Wynand1 Linux - Networking 3 12-03-2004 09:50 AM
Sendmail relaying linuxpyro Linux - Software 0 05-26-2004 04:05 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:49 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