View previous topic :: View next topic |
Author |
Message |
bone Apprentice
Joined: 07 Jun 2002 Posts: 255 Location: Midwest, USA
|
Posted: Fri Feb 25, 2005 12:09 am Post subject: Sendmail: Relay non-local mail through ISP |
|
|
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 |
|
|
papal_authority Veteran
Joined: 31 Mar 2004 Posts: 1823 Location: Canada
|
Posted: Fri Feb 25, 2005 2:57 am Post subject: |
|
|
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 |
|
|
bone Apprentice
Joined: 07 Jun 2002 Posts: 255 Location: Midwest, USA
|
Posted: Fri Feb 25, 2005 2:59 am Post subject: |
|
|
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 |
|
|
bone Apprentice
Joined: 07 Jun 2002 Posts: 255 Location: Midwest, USA
|
Posted: Fri Feb 25, 2005 3:24 am Post subject: |
|
|
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 |
|
|
|