[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1897
  • Last Modified:

Exim through exchange

Hi,

i've got an exchange server for my company and i have a linux server (debian) that i'm using in order to do some mailing list.

Currently exim is set up to send directly to internet but i want to pass by my exchange server for more security (with authentification).

Can you help me to configure this?

Thanks
0
kishkool77
Asked:
kishkool77
1 Solution
 
elevationkevinCommented:
Postfix? ModusMail by Vircom for Windows?  Sound right? if you are running mail yourself. It's a bit of work to setup but a joy to use once it's working. For hosted email, going with Google Apps works just fine.
0
 
kishkool77Author Commented:
Well i think i'm near the solution.

elevationkevin, i've set up exim like in your post but i've got this error :

 R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<xxxx@gmail.com>: host 192.168.0.103 [192.168.0.103]: 550 5.7.1 Unable to relay for xxx@gmail.com

I put my user exchange password in the file : passwd.client

xxx@mydomain.fr:xxx:yyy

And this is the content of my file : update-exim4.conf.conf

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost='mydomain.fr'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='192.168.0.103'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
Exchange_GeekCommented:
Here is the code that'll help you set up the configuration

http://www.linuxquestions.org/questions/linux-newbie-8/using-sendmail-to-relay-all-mail-to-my-exchange-server-194195/

Regards,
Exchange_Geek
0
 
kishkool77Author Commented:
I use exim not sendmail but thanks..

Well, i can send mail to toto@mydomain.local with this configuration but not to the outside...
0
 
Simon Butler (Sembee)ConsultantCommented:
Personally I would leave the implementation as it is. I don't see how it increases the security by sending the email through Exchange, if anything it puts your email from Exchange at MORE risk.

When running an email list, it is just a matter of when, not if, that you will get blacklisted. It doesn't matter whether everyone is double opt in, with a signed certificate, a sample of their blood and the promise of their first born, someone will flag it as a spam.
That will then take ages to sort out and will affect your main email going through Exchange.

Furthermore, Exchange is a really really poor bulk emailing tool. It will flood your bandwidth when the messages are sent and will generally give you grief.

In order of preference for email lists:
1. Outsource. Get someone else to do the work.
2. Use a dedicated box with a dedicated IP address.

I wouldn't even consider having Exchange involved in an email list.

Simon.
0
 
kishkool77Author Commented:
Thanks for your help.

My mailing list is short (100-200 by month) but i understand that it's a problem to go through exchange.

Thanks.

Btw i success to do it before seeing this answer.

Solution :

Put exchange IP on smarthost (exim conf) THEN allow exim server IP to relay on exchange relay authorisation.
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now