Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a dedicated server running Linux with Plesk. We're able to get incoming mail just fine, but any outbound e-mail that originates from the server will not make it off the server (either via Horde webmail or from with Plesk itself sending e-mails to an off-server e-mail account). I'm really at a loss for what to check. Can someone point me in the right direction?
I should say that if I use Horde webmail to send a test message to an email address on that domain/server, then it will arrive, but with a "softdnserror" in the message details.
The last file that I edited on the server was a config file so that I could bring FTP access back online.
Here's the contents of my "etc/hosts/" file, in case this helps:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 freshinstall localhost.localdomain localhost
66.235.xxx.xxx gxxxxxa.com
I've added the following entries to my "/etc/hosts" file, but they don't seem to have done anything to help my outbound e-mail problem.
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 freshinstall localhost.localdomain localhost
66.xxx.xxx.211 gxxxxxa.com
66.xxx.xxx.211 mail.gxxxxxa.com mail
66.xxx.xxx.211 webmail.gxxxxxa.com webmail
66.xxx.xxx.211 forum.gxxxxxa.com forum
Note: If I turn the "gxxxxxa.com" entry into "www.gxxxxxa.com", then my FTP will stop working.
This is not just a problem getting e-mail to send from Horde, but outbound server e-mail in general. I can't even get my Plesk generated server reports to arrive off-server. Any suggestions?
- Adam
Last edited by time_trapper; 02-27-2008 at 04:15 PM.
Reason: minor
Not sure if this helps, but here is what my "maillog" says when I try to send an outbound e-mail to an address off the server.
Code:
Feb 26 19:45:26 gxxxxxa qmail-queue: dwlib[1467]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Feb 26 19:45:26 gxxxxxa qmail-queue: dwlib[1467]: scan: the message(drweb.tmp.P4NmK4) sent by adam@gxxxxxa.com to adamxxxxxx@bxxxxx.net should be passed without checks, because contains uncheckable addresses
Feb 26 19:45:26 gxxxxxa qmail: 1204073126.019978 new msg 6177421
Feb 26 19:45:26 gxxxxxa qmail: 1204073126.020075 info msg 6177421: bytes 707 from <adam@gxxxxxa.com> qp 1468 uid 2020
Feb 26 19:45:26 gxxxxxa qmail: 1204073126.038500 starting delivery 13399: msg 6177421 to remote adamxxxxxx@bxxxxx.net
Feb 26 19:45:26 gxxxxxa qmail: 1204073126.038585 status: local 0/10 remote 4/20
Feb 26 19:45:26 gxxxxxa imapd: 1204073126.79359 LOGOUT, user=adam, ip=[127.0.0.1], headers=0, body=0, rcvd=622, sent=637, maildir=/var/qmail/mailnames/gxxxxxa.com/adam/Maildir
Feb 26 19:45:26 gxxxxxa imapd: Connection, ip=[127.0.0.1]
Feb 26 19:45:26 gxxxxxa imapd: LOGIN, user=adam, ip=[127.0.0.1], protocol=IMAP
Feb 26 19:45:26 gxxxxxa imapd: 1204073126.405427 LOGOUT, user=adam, ip=[127.0.0.1], headers=0, body=0, rcvd=86, sent=330, maildir=/var/qmail/mailnames/gxxxxxa.com/adam/Maildir
Here is the results from a server "nslookup":
Code:
[root@gxxxxxa root]# nslookup
> server gxxxxxa.com
Default server: gxxxxxa.com
Address: 66.2xx.xxx.211#53
> set type=mx
> gxxxxxa.com
Server: gxxxxxa.com
Address: 66.2xx.xxx.211#53
gxxxxxa.com mail exchanger = 10 mail.gxxxxxa.com.
> exit
And, if it helps, here is the header information form a test message that was sent from adam@gxxxxxa.com to adam@gxxxxxa.com (i.e. same server-side address) via Horde. Note the "softdnserror".
Code:
Return-Path: <adam@gxxxxxa.com>
Delivered-To: 1-adam@gxxxxxa.com
Received: (qmail 13984 invoked from network); 27 Feb 2008 17:49:45 -0500
Received: from softdnserror (HELO localhost) (127.0.0.1)
by softdnserror with SMTP; 27 Feb 2008 17:49:45 -0500
Received: from 72.xxx.xx.84 ([72.xxx.xx.84]) by webmail.gxxxxxa.com (Horde
MIME library) with HTTP for <adam@gxxxxxa.com>; Wed, 27 Feb 2008 17:49:05
-0500
Message-ID: <20080227174905.rr1gxvg3cbkgkwko@webmail.gxxxxxa.com>
Date: Wed, 27 Feb 2008 17:49:05 -0500
From: adam@gxxxxxa.com
To: adam@gxxxxxa.com
Subject: test
MIME-Version: 1.0
Content-Type: text/plain;
charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
User-Agent: Internet Messaging Program (IMP) H3 (4.0.3)
Last edited by time_trapper; 02-27-2008 at 04:56 PM.
What happens when you try and query DNS for a different (destination) email server ? is it resolving properly ? If your server can't resolve DNS it certainly won't be able to send messages..
Code:
default@debianetch:~$ dig MX gmail.com
; <<>> DiG 9.3.4 <<>> MX gmail.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37413
;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 4, ADDITIONAL: 10
;; QUESTION SECTION:
;gmail.com. IN MX
;; ANSWER SECTION:
gmail.com. 1591 IN MX 5 gmail-smtp-in.l.google.com.
gmail.com. 1591 IN MX 10 alt1.gmail-smtp-in.l.google.com.
gmail.com. 1591 IN MX 10 alt2.gmail-smtp-in.l.google.com.
gmail.com. 1591 IN MX 50 gsmtp163.google.com.
gmail.com. 1591 IN MX 50 gsmtp183.google.com.
;; AUTHORITY SECTION:
gmail.com. 300119 IN NS ns1.google.com.
gmail.com. 300119 IN NS ns2.google.com.
gmail.com. 300119 IN NS ns3.google.com.
gmail.com. 300119 IN NS ns4.google.com.
;; ADDITIONAL SECTION:
alt2.gmail-smtp-in.l.google.com. 277 IN A 72.14.221.114
alt2.gmail-smtp-in.l.google.com. 277 IN A 72.14.221.27
gsmtp163.google.com. 1820 IN A 64.233.163.27
gsmtp183.google.com. 7192 IN A 64.233.183.27
gmail-smtp-in.l.google.com. 22 IN A 64.233.171.27
alt1.gmail-smtp-in.l.google.com. 56 IN A 72.14.205.27
ns1.google.com. 136582 IN A 216.239.32.10
ns2.google.com. 308056 IN A 216.239.34.10
ns3.google.com. 132594 IN A 216.239.36.10
ns4.google.com. 129785 IN A 216.239.38.10
;; Query time: 67 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed Feb 27 23:29:54 2008
;; MSG SIZE rcvd: 390
I decided to edit my "/etc/resolv.conf" file to add in the addresses that Aplus.Net lists on their site (216.55.128.7 and 216.55.144.5) that should be used for dedicated servers (i.e. resolvers). My domain is from Aplus.Net, but my server is with Ipower.
My original file looked like this:
Code:
nameserver 66.235.216.48
^ The nameserver listed is for Ipower, which is where my dedicated server is hosted. But this is not my server's IP address.
Not sure if I was supposed to do this, but I did a nameserver restart:
Code:
[root@gxxxxxxa etc]# /etc/rc.d/init.d/named restart
Stopping named: [ OK ]
Starting named: [ OK ]
And then I ran a "dig" for my domain...
Code:
[root@gomanga etc]# dig MX gxxxxxa.com
; <<>> DiG 9.2.3 <<>> MX gxxxxxa.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40724
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; QUESTION SECTION:
;gxxxxxa.com. IN MX
;; ANSWER SECTION:
gxxxxxa.com. 86400 IN MX 10 mail.gxxxxxa.com.
;; AUTHORITY SECTION:
gxxxxxa.com. 86400 IN NS ns.gxxxxxa.com.
;; ADDITIONAL SECTION:
mail.gxxxxxa.com. 86400 IN A 66.2xx.xxx.211
ns.gxxxxxa.com. 86400 IN A 66.2xx.xxx.211
;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Feb 28 05:56:47 2008
;; MSG SIZE rcvd: 99
I also did a dig for a few other sites like amazon.com, gmail.com, and those were able to access them in around 49 to 191 msec.
Unfortuntely...
My outgoing email problem still isn't solved.
My website, FTP, and incoming mail all still work. But none of my outgoing email is going through yet. Any suggestions? >_>
Should I be adding more or changing my "/etc/hosts" file?
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 freshinstall localhost.localdomain localhost
66.2xx.xxx.211 gxxxxxa.com
Or is the problem elsewhere...?
- Adam
Last edited by time_trapper; 02-28-2008 at 05:32 AM.
Then I did a "/etc/rc.d/init.d/named restart" again.
And now, test messages that I sent to other off-site emails addresses since Tuesday seem to slowly be coming in. I assume the mail queue is pretty backed up (it's on tuesday right now), but I'm hoping this is the solution I was hoping for. *crosses fingers*
UPDATE: Yes, that does seem to have fixed the issue. *phew*
Still, it's weird how this dedicated server would work fine since August 2005 and suddenly need various configuration files set-up to get things back working. Makes me wonder if IPower did something.
Thanks, Farslayer, for pointing me in the right direction.
You would have loved the mail server issue I ran into at work..
I pointed the mailservers resolv.conf to the DNS servers for fidnet.com (fidelity networks) thinking they were the DNS servers for fidelity access networks (shame on me for not verifying) everything ran great or 2 years, then all of a sudden we could no longer send mail from our server. I did a few dig test from the mail server but the only response I got back from the DNS query was a list of the root servers, never a response for the domain I was digging. I called my Service provider to ask what was up with their DNS, they said everything checked A-OK on their end.. then I verified the IP's and lo-and behold I had the wrong ones..
Whatever DNS server I was mistakenly using at fidnet went insane and once I replaced the nameserver entries on the server I could dig properly again but still couldn't send mail. postfix check pointed out that the nameserver entries in /etc/resolv.conf didn't match the ones in the chrooted postfix environment once I edited the other file in the postfix chroot everything started working perfectly again. Turned me for a loop when it went down though, let me tell you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.