Do you use let's encrypt?





7703 votes ~ 25 comments

 

Sending mail with Exim from 'dialup' IP

Posted by phoenix on Wed 4 Jan 2006 at 07:36

Tags:

I've been using Exim4 for a while now as a mail server on my home cable connection. Unfortunaly my IP is listed as a dynamic IP which means some mail servers refuse to accept mail from me as I am in blacklists for dialup users.

I'm sure it must be possible to tell exim to try and deliver directly, and if that fails send it through smtp.myISPmail.server.

Can anyone suggest how I can do this?

Many thanks,

-Jeff

 

 


Re: Sending mail with Exim from 'dialup' IP
Posted by lee (193.82.xx.xx) on Wed 4 Jan 2006 at 16:58
[ View Weblogs ]

I don't think it's possible with the stock Exim (athough patches may exist). What you would normally do in this situation is either maintain a list of recipient domains that you wish to send through the smarthost (or alternatively send everything through a smarthost and manually maintain a list of domains you want to send directly).

Search for "exim smarthost route_list" and you should turn up some examples.

Untested, and off the top of my head:
Create /etc/exim4/conf.d/router/180_local_rbl_smarthost (assuming an exim4 split config)

domainlist rbl_blockers = example.com:example.org

rbl_blockers_via_smarthost:
  debug_print = "R: rbl_blockers_via_smarthost for $local_part@$domain"
  driver = manualroute
  domains = rbl_blockers
  transport = remote_smtp
  route_list = rbl_blockers your.smarthost.com

Obviously you can use a lookup (file, dbm, mysql, etc) for the domainlist data.

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by phoenix (193.113.xx.xx) on Wed 11 Jan 2006 at 15:55
Lee,

Thanks for your suggestion. I have been playing about with this, but not having much (any luck).

I'm using a single config file, this is what I've tried:

at the very top of the exim4.conf I've got the line
domainlist rbl_blockers = leeds.ac.uk

Then within the routers section I have:

rbl_blockers_via_smarthost:
driver = manualroute
domains = +rbl_blockers
transport = ntlworld
route_list = rbl_blockers smtp.ntlworld.com byname
debug_print = "R: rbl_blockers_via_smarthost for $local_part@$domain"
no_more

and finally within transports section I have:

ntlworld:
driver = smtp
hosts = smtp.ntlworld.com


I have also tried (as you suggested) transport=remote_smtp as well as various other incarnations of route_list and domains.

When sending an e-mail, exim shows R=dnslookup T=remote_smtp I have ensured my routers section entry is above the dnslookup entry.

Google hasn't been much help either :/

Any more suggestions?

Cheers,

-Jeff

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by lee (193.82.xx.xx) on Thu 12 Jan 2006 at 17:02
[ View Weblogs ]

I've tested the following on my system with "domainlist rbl_blockers = example.com"

rbl_blockers_via_smarthost:
 driver = manualroute
 domains = +rbl_blockers
 transport = remote_smtp
 route_list = rbl_blockers my.smarthost
 debug_print = "R: rbl_blockers_via_smarthost for $local_part@$domain"
 no_more

And it does do what I'd expect. (My "smarthost" isn't configured as such)

2006-01-12 16:46:24 1Ex5ag-000476-Gf ** test@example.com R=rbl_blockers_via_smarthost T=remote_smtp: SMTP error from remote mailer after RCPT TO:: host my.smarthost [10.1.2.3]: 550 relay not permitted

You've specified "byname" in the route_list - is it in /etc/hosts ?

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by phoenix (193.113.xx.xx) on Fri 13 Jan 2006 at 09:22
Right, it works now!!

I was running mailscanner with exim, which means I need 2 exim config files, and typically I was editing the wrong one! At least I now have a better understanding of how mail actually passes through exim.

Many thanks Lee.

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (69.76.xx.xx) on Wed 4 Jan 2006 at 22:30
Why not send everything through the smarthost? This is what I've always done, and have no ill-effects. I wouldn't even accept my own email if it came from a cable/dialup IP!! :-P

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (213.217.xx.xx) on Fri 6 Jan 2006 at 19:57
That will be a bad setup. Here in Germany are some providers where you need to pay 5€ per month to use ther smarthost.
But the answer to the question above is yes.
Ive seen somewhere in the net that it is possible to define a alternative routing if one route fails.

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (24.108.xx.xx) on Sun 8 Jan 2006 at 14:57
I think your confusing mailhosting and smarthost, smarthost redirects email to the smtp gateway for the ISP where as mailhosting has the ISP set up a smtp host for the end user.

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (147.162.xx.xx) on Mon 9 Jan 2006 at 11:28
Should you need a free smarthost open a webmail account (yahoo for ex) and use the smtp as smarthost. I have done this for years without any problem.

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (204.167.xx.xx) on Fri 27 Jan 2006 at 16:36
I'm not using a dailup connection but, I'm still sourcing from the ISPs dynamic IP pool. So I'm suffering from the same 'blacklisting' problem.

I'm a total newbie to email server stuff. I use mutt as my email client and I love it. Mutt uses the local mail server and therefore my mail sources from my home box. So I'm trying to config the 'smarthost' thing *AND* authentication to my ISPs mail server. I assume that Yahoo requires auth as well.

I'm just not having any luck in doing so. All the info I find is confusing and nothing I've tried seems to work.

Is there anything/anyone that can tell me step by step how to accomplish this?

thanks,
corp.mule@gmail.com

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by andykirk (202.168.xx.xx) on Mon 13 Feb 2006 at 05:11
Check out the client configuration near the end of this article:
http://www.wlug.org.nz/EximSmtpAuth

(from the 1st page of google results for "exim smtp smarthost authentication")

And yes, Yahoo SMTP requires auth.

HTH!

[ Parent | Reply to this comment ]

Re: Sending mail with Exim from 'dialup' IP
Posted by Anonymous (61.11.xx.xx) on Tue 28 Mar 2006 at 10:01
http://www.hserus.net/dlhowto.html - the Dialup Howto

It has these docs - http://www.hserus.net/exim.html (also http://www.hserus.net/postfix.html and http://www.hserus.net/sendmail.html)

These should help you route email to a smarthost

srs

[ Parent | Reply to this comment ]