Hello, all.
I have two entries in a mailertable:
domain1.com esmtp:[hostinny.mydomain.com]
domain2.com esmtp:[hostinny.mydomain.com]
After I made the entries I did makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable and restarted sendmail. One domain uses the smarthost and the other entry doesn't.
CentOS 5.8 box (Unitrends Appliance) with stock Sendmail sendmail-8.13.8-8.1.el5_7. If we email to normal addresses from the box (we have two boxes both doing the same thing) everything is fine. If we email to our domain, which has its website handled through CloudFlare's CDN, from these boxes we can't receive mail.
As described in the title. If mydomain.com is THE local domain, why would exim attempt delivering mail by contacting it, rather than just storing it in a local mbox? I.e. when I do echo hello | mail root, it sends an email to root@mydomain.com by contacting an MX listed in mydomain.com.
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 am trying to send an e-mail with sendmail, but I need to specify some headers (From, Content-Type, Subject). Here is the command I am currently running:
echo "Content-Type: text/plain\r\nFrom: do-not-reply@mydomain.com\r\nSubject: Test\r\n\r\nThe body goes here" | sendmail -f do-not-reply@mydomain.com admin@mydomain.com
The problem is that the headers are not being set.
I have following line in my cf file
Fw/etc/mail/local-host-names
and following lines in local-host-names file
mydomain.com
hostname.mydomain.com
but when I send mail to mailaddress@otherhost.mydomain.com, sendmail is accepting mails for it. otherhost.mydomain.com resolves to one of the private IP address. What could be the reason?
I have a machine I don't want postfix running on and am using sendmail. I modified /etc/mail/sendmail.mc to have this line(hoping it would send mail through that postfix server)...
define(`SMART_HOST', `postfixhost.yyyy.com')dnl
and ran make to regen the sendmail.cf file and checked it and it looks good.
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
well i set up my Ubuntu 12.04 , installed sendmail, its already running and accepting connections.