I''m configuring a server to send emails. Emails sent to any domain,
apart from my own, are sent okay. I have my emails with Google Apps.
Assuming my domain is, example.com. If I send an email from my server
to ruben at example.com it doesn''t arrive at my Google Apps account, it
arrives to my server and I can read it using $ mail.
I configured exim the following way:
$ sudo dpkg-reconfigure exim4-config
? ? General type of mail configuration: ? internet site; mail is sent
and received directly using SMTP
? ? System mail name: ? domain.tld
? ? IP-addresses to listen on for incoming S TP connections:
127.0.0.1:xxx.xxx.xxx.xx
? ? Other destinations for which mail is accepted: ? <blank>
? ? Domains to relay mail for: ? ?<blank>
? ? Machines to relay mail for: ? <blank>
? ? Keep number of DNS-queries minimal (Dial-on-Demand)?: ? <No>
? ? Delivery method for local mail: ? mbox format in /var/mail/
? ? Split configuration into small files?: ? <No>
?$ sudo update-exim4.conf
?$ sudo /etc/init.d/exim4 restart
Where xxx.xxx.xxx.xx is my external IP address and example.com is my
real domain.
Does anyone know how to correctly configure this so emails sent to my
domain from the server arrive at the Google Apps account?
Thanks,
-- Rub?n O. Varela Rosa
rovr138 at gmail.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le 13/04/2010 21:26, Ruben Varela a ?crit : [...]> System mail name: domain.tld[...]> Where [...] example.com is my real domain.I don''t know what a "real domain" is, but if "domain.tld" is a domain that shouldn''t be handled by your server, you''d rather choose another name for your "System mail": idontwanttoreceivemail.domain.tld for example. Hope this help Cheers David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkvFKKMACgkQ18/WetbTC/ozLQCeNmEOS7ImFrTE2kw41M7+xnH4 GBgAn3mJI/dGyAwtVBfH8xbvEjzcBklT =lt4f -----END PGP SIGNATURE-----
On Tue, Apr 13, 2010 at 10:29 PM, David Pr?vot <davidp at altern.org> wrote:> [...] > if "domain.tld" is a domain that shouldn''t be handled by your server, you''d rather choose another > name for your "System mail": idontwanttoreceivemail.domain.tld for example. >[...]David, Thank you for answering so quickly. In System mail, I added donotemail. as a prefix to the domain. This is reflected by the emails received on Gmail , but I still can''t receive emails on my Google Apps account using this. They are still sent to the server. -- Rub?n O. Varela Rosa rovr138 at gmail.com
Okay, I figured it out. My hostname was configured to be my domain ruben at domain.tld:~$ uname -n domain.tld ruben at domain.tld:~$ hostname domain.tld ruben at domain.ltd:~$ hostname --fqdn domain.tld I changed this to server.domain.tld ruben at domain.ltd:~$ sudo hostname server.domain.tld and then tried it again and this fixed it. Afterwards, I changed the file /etc/hostname to reflect this so the change would be reflected on reboots. On the exim configuration, I changed the domain back to zenvapr.com and it still works. -- Rub?n O. Varela Rosa rovr138 at gmail.com