Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running exim4 as my MTA and it works great to send emails to outside emails other than my hostname.

When I send an email to my gmail via command line (sendmail forgedtuts@gmail.com, etc...) it works fine.

When I send an email to my website's domain, which is also the hostname for the server, i'm assuming it just does local delivery... which won't work because my email is received by another server (Google Apps).

So how do I disable local delivery in Exim4? dpkg-reconfigure exim4-config did not give any real results.

share|improve this question
    
1) a smarthost use of Google Apps seems to set the reply-to as the authenicating account so if you are trying to have your web site send mail it will always come from your Google Apps account. At least this is what seems to happen 2) I'm trying to use a contact form so the reply-to has to be the email address the user enters in the form My understanding is that I cannot use a smarthost and that I therefore need to find another way to disable the local delivery. There must be a config setting, maybe something not in the dpkg-reconfigure settings? –  user70010 Feb 8 '11 at 20:50

2 Answers 2

You're server's name should not be the domain name... it should have a hostname like "server" under your domain "example.com", so the FQDN is "server.example.com".

share|improve this answer
    
Tried, and failed, unfortunately. –  Julian H. Lam Apr 14 '12 at 2:19
    
@JulianH.Lam You must have exim configured to think it is responsible for the domain then. Also, if you have a Question please use the "Ask Question" button in the upper right corner of every page. –  Chris S Apr 14 '12 at 2:57

Run dpkg-reconfigure exim4-config, select mail sent by smarthost; no local mail and fill out the asked information.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.