?
Solved

Configure mail to not be delivered locally

Posted on 2010-09-22
5
Medium Priority
?
859 Views
Last Modified: 2012-05-10
My domain email is being handled on a web server with Godaddy.

I have a problem. When site emails the admin the server thinks it is suppose to receive the email and cant find where to put it.

How can I tell my server that the mail for a given domain is handled externally?

Sep 22 16:15:28 vm-1476 postfix/error[32312]: 5CFF44F06AC: to=<todd@DOMAIN.com>, relay=none, delay=0.06, delays=0.03/0.01/0/0.02, dsn=5.0.0, status=bounced (User unknown in virtual alias table)

-TNX
0
Comment
Question by:jbrashear72
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 26

Expert Comment

by:jar3817
ID: 33740234
Change the local domain.

In /etc/mail/sendmail.mc make sure LOCAL_DOMAIN() is set to something random like "somethingelse.yourdomain.com" rather than just "yourdomain.com"

Also check the /etc/mail/local-host-names file to make sure that domain isn't there. If you're running split DNS or for some reason your server doesn't resolve the MX record right for that domain, you can override it using the /etc/mail/mailertable file:

domain.com             esmtp:[mailserver.domain.com]

Then remake the sendmail config and all maps and restart it:

# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# cd /etc/mail && make && /etc/rc.d/init.d/sendmail restart
0
 
LVL 3

Author Comment

by:jbrashear72
ID: 33740305
Does that work if this is postfix?

Also I changed the LOCAL_DOMAIN() to LOCAL_DOMAIN(www.flatcomputing.com)

and added
flatcomputing.com             esmtp:[smtp.secureserver.net]
to the mailertable

When I tried to run:
# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

I got:
[root@vm-1476 mail]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/mail/sendmail.mc:10: m4: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
[root@vm-1476 mail]#

Any ideas?
0
 
LVL 26

Expert Comment

by:jar3817
ID: 33740368
You need the sendmail-cf rpm installed.

Also, this is all for sendmail, not postfix. Which are you running?
0
 
LVL 3

Accepted Solution

by:
jbrashear72 earned 0 total points
ID: 33740415
It looks like Postfix
in the Maillog all entries are from Postfix.

But I believe I have fixed it. I found in the virtualmin setting that it was set to accept mail for the domain. I turned that off and it started working.
0
 
LVL 3

Author Closing Comment

by:jbrashear72
ID: 34523685
It worked it self out.
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Easy CSR creation in Exchange 2007,2010 and 2013
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question