Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sendmail: Relay non-local mail through ISP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Fri Feb 25, 2005 12:09 am    Post subject: Sendmail: Relay non-local mail through ISP Reply with quote

First, let me state that I am wanting to stick with sendmail for this project. That being said, let me explain whats going on.

I have the usual "e-mail rejected because of it being on a dynamic ip address" issue that most have when running a home e-mail server from their cable/dsl. Basically, I only want to relay mail through my ISP's smtp server if it's not local mail. I will be receiving all mail for my dynamic dns domain through my local box.

I have seen smarthost, stickyhost, local_relay, and all the likes and now I think I have confused myself more. See my sendmail.mc below:

Code:
divert(-1)

divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: bone.mc,v 1.1 2004/12/02 00:00:01 The-Legend Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
MASQUERADE_AS(xxx.xxx.xxx)dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`local_procmail')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl


Help!!!...
jt
Back to top
View user's profile Send private message
papal_authority
Veteran
Veteran


Joined: 31 Mar 2004
Posts: 1823
Location: Canada

PostPosted: Fri Feb 25, 2005 2:57 am    Post subject: Reply with quote

You'll want to add your ISP's SMTP server as a smart host:
Code:
define(`SMART_HOST', `esmtp:mail.yourisp.net')dnl

HTH.
_________________
The free market gave me gonorrhea.
Back to top
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Fri Feb 25, 2005 2:59 am    Post subject: Reply with quote

papal_authority wrote:
You'll want to add your ISP's SMTP server as a smart host:
Code:
define(`SMART_HOST', `esmtp:mail.yourisp.net')dnl

HTH.


See, I saw that in a ton of the howto's but that just seemed to simple and shortly after that all the other things like stickyhost,relay_local and the likes cropped up confusing the mix even more. Thanks for the reply. I will give it a shot.

jt
Back to top
View user's profile Send private message
bone
Apprentice
Apprentice


Joined: 07 Jun 2002
Posts: 255
Location: Midwest, USA

PostPosted: Fri Feb 25, 2005 3:24 am    Post subject: Reply with quote

That seems to have did the trick nicely. Thanks alot. I guess sometimes things are too simple. Teach me to try and use sendmail instead of one of the other mta's i have used for years.



jt
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum