Solved

Configure mail to not be delivered locally

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

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Suggested Solutions

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Easy CSR creation in Exchange 2007,2010 and 2013
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

12 Experts available now in Live!

Get 1:1 Help Now