I've got an Ubuntu server with the hostname node1.mydomain.com. I have mydomain.com set up with Google Apps for email, and mail sent to node1.mydomain.com arrives in the correct Google Apps mailbox. However, mail sent from this server through sendmail (by cron, php, or whatever else) to node1.mydomain.com only gets delivered locally to the user's mailbox, and isn't sent out over SMTP.
I'm using vps server with ubuntu 10.04 when i send email to Gmail it's ok but for Hotmail fails, i check my logs i find this:
Mar 19 18:09:01 mail postfix/smtp[6340]: 8FAF722294: to=<root@mydomain.com>, orig_to=<root>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for mydomain.com loops back to myself)
I look around inforums to find the solution but i
I have an Ubuntu server running postfix. It is not the mail server for my domain.
Whenever a cron job runs for root, the output is sent to root@mydomain.com (that is, mail is not delivered locally, but sent to mydomain.com's mail server).
I have postfix and mail installed on my server.
The following command works fine
$mail aj@xyz.com
But if I use this command
$mail aj@mydomain.com
The system thinks I am trying to send a local email to the user 'aj'.
I changed my nameservers at my domain registrar.
I waited and not work.
in /etc/hosts:
host1.mydomain.it xx.xx.xx.88
in /etc/nameserverips:
xx.xx.xx.214=ns2.mydomain.it
xx.xx.xx.88=ns1.mydomain.it
in /cat/domain/mydomain.it.db:
mydomain.it. 86400 in SOA ns1.mydomain.it. info.domain.it.
According to the manual, if a mail is sent without domain information, it will append $myorigin .
mydomain.com works fine.
www.mydomain.com gives "404 - File or directory not found."
I don't want people to use www.mydomain.com instead of mydomain.com, but I also don't want the 404 error in their face if the do.
Ok, so here's my problem: I've set up myself a virtualhost with an appropriate server name. I also have, for example, Squirrelmail and SVN installed on the same machine. I want to get to the default page by typing http :// mydomain , get to my mail frontend by typing http ://mydomain /mail and to my svn by typing http :// mydomain.no-ip.org /svn.
I just got a VPS. All the host gave me was an IP address to have the domain point to.
Lets say my domain is mydomain.com
So what I did was I removed the nameserver (not the NS records, but the actual nameserver) values.