Solved

Configure mail to not be delivered locally

Posted on 2010-09-22
5
834 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now