LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-30-2009, 09:23 AM   #1
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Rep: Reputation: 0
[Postfix/Sendmail] refuses to send to domain


Hello,

Recently I installed sendmail on a Dedicated Server running Fedora Core 8.

Everything seems to be working fine, but for some reason it won't send emails to the domain its hosted on. Which wouldn't make sense since it has nothing to do with its functionality (or so I thought).

So, if my domain was (www.tryingmail.com), the server hosting (www.tryingmail.com) can't send to (any@tryingmail.com) but can send to (anyotheraddress@hotmail.com).

Its worth noting that I'm using Google Accounts for the domains email accounts as well.

Thanks for any help,
Liquidity

Last edited by Liquidity; 10-02-2009 at 05:05 AM.
 
Old 09-30-2009, 12:40 PM   #2
crwdawg
LQ Newbie
 
Registered: Jul 2004
Posts: 20

Rep: Reputation: 1
Question Testing rationale

1. Can others send to your domain?
2. What is the hostname of your server you built?
 
Old 10-01-2009, 03:11 AM   #3
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by crwdawg View Post
1. Can others send to your domain?
2. What is the hostname of your server you built?
1. Well yeah, like said incoming Emails go to Google through Accounts.
2. I'm running a GoDaddy Dedicated Server, this is the first problem I've had with it. The hostname however, is ip-208.109.218.13.ip.secureserver.net
 
Old 10-01-2009, 06:24 AM   #4
crwdawg
LQ Newbie
 
Registered: Jul 2004
Posts: 20

Rep: Reputation: 1
Arrow sending mail via telnet

Several ISP's are being very particular who they receive mail from in order to combat spam. Most major mail servers you now have to have Reverse DNS records in order for them to consider receiving mail from your mail server.

Here is the next thing to do in your testing

From the command shell on your Linux server we want to simulate sending an email via telnet so you can see the actual error message that the receiving mail server is required by RFQ to give you.

Enter in the following commands being sure to type correctly. During this process your backspace key makes the entire line void and you will need to start the line completely over

telnet <ip address of your actual mail server> 25
helo me
mail from:<your email address>
rcpt to:<your email address>
data
Subject: this is a test
this is a test
.

It is important that you end with a period on a line by itself. This should complete the mail transaction. If you do not receive any errors, the mail should go through. If you receive any errors, please post.
 
Old 10-01-2009, 07:19 AM   #5
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Rep: Reputation: 16
Lsn, Im facing the same problem. check /etc/mail/local-host-names and remove your domain name from there then /etc/init.d/sendmail restart, this is supposed to work well, although I did this and didnt work.
 
Old 10-01-2009, 08:01 AM   #6
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by crwdawg View Post
Several ISP's are being very particular who they receive mail from in order to combat spam. Most major mail servers you now have to have Reverse DNS records in order for them to consider receiving mail from your mail server.

Here is the next thing to do in your testing

From the command shell on your Linux server we want to simulate sending an email via telnet so you can see the actual error message that the receiving mail server is required by RFQ to give you.

Enter in the following commands being sure to type correctly. During this process your backspace key makes the entire line void and you will need to start the line completely over

telnet <ip address of your actual mail server> 25
helo me
mail from:<your email address>
rcpt to:<your email address>
data
Subject: this is a test
this is a test
.

It is important that you end with a period on a line by itself. This should complete the mail transaction. If you do not receive any errors, the mail should go through. If you receive any errors, please post.
Sending to a Hotmail address worked fine, sending to my own domain I got this:

Code:
helo me
250 ip-208-109-218-13.ip.secureserver.net
mail from:<me>@<mydomain>.com
250 2.1.0 Ok
rcpt to:<me>@<mydomain>.com
550 5.1.1 <<me>@<mydomain>.com>: Recipient address rejected: User unknown in virtual mailbox table
(Obviously I removed the email and domain addresses)

Any idea how to fix this?

Thanks for your help.
 
Old 10-01-2009, 08:09 AM   #7
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sci3ntist View Post
Lsn, Im facing the same problem. check /etc/mail/local-host-names and remove your domain name from there then /etc/init.d/sendmail restart, this is supposed to work well, although I did this and didnt work.
My domain isn't even in the file..
 
Old 10-01-2009, 09:00 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by Liquidity View Post
Sending to a Hotmail address worked fine, sending to my own domain I got this:

Code:
helo me
250 ip-208-109-218-13.ip.secureserver.net
mail from:<me>@<mydomain>.com
250 2.1.0 Ok
rcpt to:<me>@<mydomain>.com
550 5.1.1 <<me>@<mydomain>.com>: Recipient address rejected: User unknown in virtual mailbox table
Are you sure that the sendmail you've installed is running? Because this is a postfix error AFAIK.
 
Old 10-01-2009, 09:07 AM   #9
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Are you sure that the sendmail you've installed is running? Because this is a postfix error AFAIK.
well the other email sent fine.
 
Old 10-01-2009, 09:20 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Running any of the following
Code:
ps -ef
netstat -tanpl|grep 25
should tell you which server is running and listening on port 25. I'm not familiar with postfix, but the error you get is a common postfix error.
 
Old 10-01-2009, 09:39 AM   #11
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
Running any of the following
Code:
ps -ef
netstat -tanpl|grep 25
should tell you which server is running and listening on port 25. I'm not familiar with postfix, but the error you get is a common postfix error.
Heres the output:

Code:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Sep11 ?        00:00:09 init [3]
root         2     0  0 Sep11 ?        00:00:00 [kthreadd]
root         3     2  0 Sep11 ?        00:00:00 [migration/0]
root         4     2  0 Sep11 ?        00:02:07 [ksoftirqd/0]
root         5     2  0 Sep11 ?        00:00:00 [watchdog/0]
root         6     2  0 Sep11 ?        00:00:01 [migration/1]
root         7     2  0 Sep11 ?        00:43:51 [ksoftirqd/1]
root         8     2  0 Sep11 ?        00:00:00 [watchdog/1]
root         9     2  0 Sep11 ?        00:10:31 [events/0]
root        10     2  0 Sep11 ?        00:11:04 [events/1]
root        11     2  0 Sep11 ?        00:00:00 [khelper]
root        68     2  0 Sep11 ?        00:00:03 [kblockd/0]
root        69     2  0 Sep11 ?        00:00:03 [kblockd/1]
root        71     2  0 Sep11 ?        00:00:00 [kacpid]
root        72     2  0 Sep11 ?        00:00:00 [kacpi_notify]
root       138     2  0 Sep11 ?        00:00:00 [cqueue]
root       140     2  0 Sep11 ?        00:00:00 [ksuspend_usbd]
root       145     2  0 Sep11 ?        00:00:00 [khubd]
root       148     2  0 Sep11 ?        00:00:00 [kseriod]
root       188     2  0 Sep11 ?        00:00:21 [pdflush]
root       189     2  0 Sep11 ?        00:00:00 [pdflush]
root       190     2  0 Sep11 ?        00:00:01 [kswapd0]
root       231     2  0 Sep11 ?        00:00:00 [aio/0]
root       232     2  0 Sep11 ?        00:00:00 [aio/1]
root       401     2  0 Sep11 ?        00:00:00 [kpsmoused]
root       440     2  0 Sep11 ?        00:00:00 [ata/0]
root       441     2  0 Sep11 ?        00:00:00 [ata/1]
root       442     2  0 Sep11 ?        00:00:00 [ata_aux]
root       446     2  0 Sep11 ?        00:00:00 [scsi_eh_0]
root       447     2  0 Sep11 ?        00:00:00 [scsi_eh_1]
root       448     2  0 Sep11 ?        00:00:00 [scsi_eh_2]
root       449     2  0 Sep11 ?        00:00:00 [scsi_eh_3]
root       467     2  0 Sep11 ?        00:22:02 [kjournald]
root       494     2  0 Sep11 ?        00:00:00 [kauditd]
root       526     1  0 Sep11 ?        00:00:00 /sbin/udevd -d
root      1070     2  0 Sep11 ?        00:00:00 [kstriped]
root      1085     2  0 Sep11 ?        00:00:00 [kmpathd/0]
root      1086     2  0 Sep11 ?        00:00:00 [kmpathd/1]
root      1114     2  0 Sep11 ?        00:00:00 [kjournald]
root      1278     2  0 Sep11 ?        00:04:19 [kondemand/0]
root      1279     2  0 Sep11 ?        00:05:04 [kondemand/1]
cyrus     1424  2082  0 Sep21 ?        00:00:00 pop3d
cyrus     1425  2082  0 Sep21 ?        00:00:00 pop3d
rpc       1598     1  0 Sep11 ?        00:00:01 rpcbind
rpcuser   1617     1  0 Sep11 ?        00:00:00 rpc.statd
root      1645     2  0 Sep11 ?        00:00:00 [rpciod/0]
root      1646     2  0 Sep11 ?        00:00:00 [rpciod/1]
root      1653     1  0 Sep11 ?        00:00:00 rpc.idmapd
root      1689     1  0 Sep11 ?        00:00:19 pcscd
root      1697     1  0 Sep11 ?        00:02:19 rsyslogd -m 0
root      1702     1  0 Sep11 ?        00:00:00 rklogd -x
dbus      1715     1  0 Sep11 ?        00:00:04 dbus-daemon --system
named     1733     1  0 Sep11 ?        00:00:24 /usr/sbin/named -u named -t /var
root      1753     1  0 Sep11 ?        00:38:10 automount
root      1770     1  0 Sep11 ?        00:00:00 /usr/sbin/acpid
root      1778     1  0 Sep11 ?        00:00:00 /usr/sbin/hcid -s
root      1788     2  0 Sep11 ?        00:00:00 [btaddconn]
root      1789     2  0 Sep11 ?        00:00:00 [btdelconn]
root      1804     2  0 Sep11 ?        00:00:00 [krfcommd]
root      1848     1  0 Sep11 ?        00:00:05 /usr/sbin/sshd
root      1858     1  0 Sep11 ?        00:00:10 /usr/sbin/vsftpd /etc/vsftpd/vsf
root      1886     1  0 Sep11 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --d
mysql     1946  1886  0 Sep11 ?        00:05:55 /usr/libexec/mysqld --basedir=/u
cyrus     2082     1  0 Sep11 ?        00:02:25 /usr/lib/cyrus-imapd/cyrus-maste
cyrus     2099     1  0 Sep11 ?        00:00:28 idled
cyrus     2101  2082  0 Sep11 ?        00:00:00 imapd
cyrus     2102  2082  0 Sep11 ?        00:00:00 imapd -s
cyrus     2103  2082  0 Sep11 ?        00:00:00 pop3d
cyrus     2104  2082  0 Sep11 ?        00:00:00 pop3d -s
cyrus     2107  2082  0 Sep11 ?        00:00:00 imapd -s
cyrus     2109  2082  0 Sep11 ?        00:00:00 pop3d -s
cyrus     2125  2082  0 Sep11 ?        00:00:00 imapd
cyrus     2126  2082  0 Sep11 ?        00:00:00 pop3d
root      2156     1  0 Sep11 ?        00:00:15 /usr/libexec/postfix/master
postfix   2163  2156  0 Sep11 ?        00:00:21 qmgr -l -t fifo -u
root      2175     1  2 Sep11 ?        12:51:25 /usr/java/jdk1.5.0_17/bin/java -
root      2183     1  0 Sep11 ?        00:00:00 gpm -m /dev/input/mice -t exps2
cyrus     2194  2082  0 Sep11 ?        00:00:00 imapd
cyrus     2195  2082  0 Sep11 ?        00:00:00 imapd
cyrus     2196  2082  0 Sep11 ?        00:00:00 imapd
cyrus     2197  2082  0 Sep11 ?        00:00:00 pop3d
root      2206     1  0 Sep11 ?        00:00:21 /usr/sbin/httpd
root      2214     1  0 Sep11 ?        00:00:00 console-kit-daemon
root      2283     1  0 Sep11 ?        00:04:10 crond
root      2290     1  0 Sep11 ?        00:00:00 /usr/sbin/atd
avahi     2299     1  0 Sep11 ?        00:00:17 avahi-daemon: running [ip-208-10
avahi     2300  2299  0 Sep11 ?        00:00:00 avahi-daemon: chroot helper
root      2315     1  0 Sep11 ?        00:00:00 cupsd
68        2323     1  0 Sep11 ?        00:00:32 hald
root      2332  2323  0 Sep11 ?        00:00:00 hald-runner
root      2346  2332  0 Sep11 ?        00:00:00 hald-addon-input: Listening on /
root      2354  2332  0 Sep11 ?        00:00:00 /usr/libexec/hald-addon-cpufreq
68        2355  2332  0 Sep11 ?        00:00:00 hald-addon-acpi: listening on ac
root      2886     1  0 Sep11 ?        00:00:03 /usr/bin/python -tt /usr/sbin/yu
root      2888     1  0 Sep11 ?        00:00:01 /usr/libexec/gam_server
root      2981     1  0 Sep11 tty1     00:00:00 /sbin/mingetty tty1
root      2982     1  0 Sep11 tty2     00:00:00 /sbin/mingetty tty2
root      2983     1  0 Sep11 tty3     00:00:00 /sbin/mingetty tty3
root      2984     1  0 Sep11 tty4     00:00:00 /sbin/mingetty tty4
root      2985     1  0 Sep11 tty5     00:00:00 /sbin/mingetty tty5
root      2986     1  0 Sep11 tty6     00:00:00 /sbin/mingetty tty6
postfix   3028  2156  0 Sep11 ?        00:01:02 tlsmgr -l -t unix -u
cyrus     7101  2082  0 Sep28 ?        00:00:00 pop3d
apache   10083  2206  0 Sep29 ?        00:00:37 /usr/sbin/httpd
apache   10084  2206  0 Sep29 ?        00:00:35 /usr/sbin/httpd
apache   10085  2206  0 Sep29 ?        00:00:39 /usr/sbin/httpd
apache   10086  2206  0 Sep29 ?        00:00:40 /usr/sbin/httpd
apache   10087  2206  0 Sep29 ?        00:00:36 /usr/sbin/httpd
apache   10088  2206  0 Sep29 ?        00:00:39 /usr/sbin/httpd
apache   10089  2206  0 Sep29 ?        00:00:41 /usr/sbin/httpd
apache   10090  2206  0 Sep29 ?        00:00:41 /usr/sbin/httpd
apache   10167  2206  0 Sep29 ?        00:00:37 /usr/sbin/httpd
apache   10169  2206  0 Sep29 ?        00:00:38 /usr/sbin/httpd
cyrus    10172  2082  0 Sep18 ?        00:00:00 imapd
apache   10191  2206  0 Sep29 ?        00:00:40 /usr/sbin/httpd
apache   10192  2206  0 Sep29 ?        00:00:37 /usr/sbin/httpd
apache   10645  2206  0 Sep29 ?        00:00:28 /usr/sbin/httpd
apache   10713  2206  0 Sep29 ?        00:00:38 /usr/sbin/httpd
apache   11069  2206  0 Sep29 ?        00:00:29 /usr/sbin/httpd
apache   13646  2206  0 Sep30 ?        00:00:19 /usr/sbin/httpd
apache   13647  2206  0 Sep30 ?        00:00:20 /usr/sbin/httpd
apache   13648  2206  0 Sep30 ?        00:00:17 /usr/sbin/httpd
cyrus    17215  2082  0 04:15 ?        00:00:00 lmtpd
cyrus    17216  2082  0 04:15 ?        00:00:00 imapd
cyrus    17227  2082  0 04:18 ?        00:00:00 imapd
cyrus    17229  2082  0 04:18 ?        00:00:00 imapd
cyrus    17230  2082  0 04:18 ?        00:00:00 imapd
apache   17443  2206  0 06:07 ?        00:00:03 /usr/sbin/httpd
root     17636  1848  0 07:49 ?        00:00:00 sshd: aliprimary [priv]
501      17638 17636  0 07:49 ?        00:00:04 sshd: aliprimary@pts/0
501      17639 17638  0 07:49 pts/0    00:00:01 -bash
postfix  17805  2156  0 08:57 ?        00:00:06 pickup -l -t fifo -u
501      17986 17639  0 10:32 pts/0    00:00:00 ps -ef
[user@ip-208-109-218-13 /]$ netstat -tanpl|grep 25
(No info could be read for "-p": geteuid()=501 but you should be root.)
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      -
tcp        0      0 :::25                       :::*                        LISTEN      -
I believe the problem comes with the fact its trying to send mail to itself, when i don't want it to recieve mail.

I've setup my domain with appropriate MX addresses so mail goes to Google Mail.. but I don't think its going all the way.

I need to somehow make an alias that routes it the right way.

The MX server is aspmx.l.google.com
 
Old 10-01-2009, 11:10 AM   #12
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
root 2156 1 0 Sep11 ? 00:00:15 /usr/libexec/postfix/master
postfix 2163 2156 0 Sep11 ? 00:00:21 qmgr -l -t fifo -u
So what you think about that?
I'm not familiar with postfix, so I cannot help you further, but it wouldn't be difficult to configure it to accept mail for your domain. You can start by reading this.

Regards
 
Old 10-01-2009, 09:04 PM   #13
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,301

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
And in light of that, please amend your thread title to say postfix instead of sendmail. You'll get more/better help that way.
 
Old 10-02-2009, 05:04 AM   #14
Liquidity
LQ Newbie
 
Registered: Sep 2009
Distribution: Debian 6 x86
Posts: 11

Original Poster
Rep: Reputation: 0
I've already explained that -I don't want to setup the server to receive mail-.

It already sends out mail just fine.. the problem is that when it wants to sent to *@domainitshostedon.com - I'm guessing its sending to itself, which is wrong.

The email addresses are managed with Google Mail, and the domain uses their MX - aspmx.l.google.com

I've changed the topic name anyway.
 
Old 10-02-2009, 05:22 AM   #15
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,938

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Hi,

As I told you I'm not familiar with postfix, but I guess transport table is what you want.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict users of a domain to send/receive mail from one particular domain tanveer Linux - Server 0 09-02-2007 02:01 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
cant send email (using sendmail) to newly added domain user sirjosi Linux - Newbie 0 10-22-2003 01:12 AM
how to refuse to send email to some domain with sendmail? lzyking Linux - Software 3 09-16-2003 08:21 AM
Linux refuses to send packets via Internet tungro Linux - Newbie 11 02-27-2002 02:27 PM


All times are GMT -5. The time now is 04:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration