Can't send system emails
First of all, this is my first post here, so hello to everybody who reads me :)
I've just installed a Zimbra OS version on a CentOS 5.5 machine, and I have a little problem.
I can send emails perfectly to example.com and external domains from any account I've created, but there are some emails that i can't send. What I'm trying to do is simple, just in a terminal:
echo “This was a test” | sendmail -f email@example.com root
This generates a response to firstname.lastname@example.org that says:
<email@example.com>: mail for server2.example.com loops back to myself
The problem is that root account points to firstname.lastname@example.org instead email@example.com
My configuration looks like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
18.104.22.168 server2.example.com server2
dig example.com mx
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> example.com mx
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45469
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; QUESTION SECTION:
;example.com. IN MX
;; ANSWER SECTION:
example.com. 7250 IN MX 10 mail.example.com.
;; AUTHORITY SECTION:
example.com. 45157 IN NS ns1.example.com.
example.com. 45157 IN NS ns2.example.com.
;; ADDITIONAL SECTION:
mail.example.com. 7250 IN A 22.214.171.124
ns1.example.com. 7250 IN A 126.96.36.199
ns2.example.com. 7250 IN A 188.8.131.52
;; Query time: 0 msec
;; SERVER: 184.108.40.206#53(220.127.116.11)
;; WHEN: Tue Sep 28 15:29:26 2010
;; MSG SIZE rcvd: 134
example.com. 14400 IN MX 10 mail
mail 14400 IN A 18.104.22.168
server2 14400 IN A 22.214.171.124 ; Main IP
22-22-22-22 14400 IN A 126.96.36.199 ; Secondary Ip (Failover)
The server that has installed Zimbra is the only that can send this emails to root, the rest of the servers i have send this ones normally.
This server only have one domain: example.com
Anyone have an idea of what is happening here? All comments are welcome and apreciated.