LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-21-2011, 04:15 AM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
squirrer mail- error while sending mail


while i send mail form squirrel mail it gives error.

ERROR:
Message not sent. Server replied:

Unknown response
511 sorry, can't find a valid MX for sender domain (#5.1.1 - chkuser)

what does it mean and how could i rectify.
 
Old 04-21-2011, 06:11 AM   #2
cincindie
Member
 
Registered: Jul 2004
Location: Zinzinnati, OH
Distribution: RH, FC 1-6, F 7-21, Debian, LinuxPPC, Knoppix, Ubuntu, Yellow Dog
Posts: 176

Rep: Reputation: 31
I think it means that you do not have a valid domain address (at least a domain that has a valid MX record) in the 'from' envelope of your email. Do you have a valid MX record (normally set either with your ISP or your domain registrar)?
 
Old 04-21-2011, 06:31 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
When you connect to a mail handler to pass mail to it, you tell it who you are

Code:
MAIL FROM example.com
This system is checking that you are a valid mail handler by looking for an MX record.
If the sender domain is example.com, you can check with:

dig -t MX example.com

Many mail handlers won't accept mail from dynamic IP addresses or from domains that don't have a properly configured DNS.
 
Old 04-21-2011, 08:02 AM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thnks
i tried command

# dig -t MX mydom.co.in

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> -t MX mydom.co.in
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27251
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mydom.co.in. IN MX

;; AUTHORITY SECTION:
mydom.co.in. 86400 IN SOA mydom.co.in.mydom.co.in. root.mydom.co.in.mydom.co.in. 42 10800 900 604800 86400

;; Query time: 0 msec
;; SERVER: 172.16.13.82#53(172.16.13.82)
;; WHEN: Thu Apr 21 18:26:22 2011
;; MSG SIZE rcvd: 82



i think its show no error...is their is any ip problem.well iam in an organization and making another mail server in centos
did any one having idea what to do now
 
Old 04-21-2011, 09:07 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
It does show an error. There is no ANSWER section (ANSWER: 0) Your domain has no MX record.

Last edited by smallpond; 04-21-2011 at 09:08 AM. Reason: More correcter
 
Old 04-21-2011, 09:46 AM   #6
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thnks for replying
when i send mail form console mode i recived every mail.but not from squirrel mail.

so now what should i have todo for that.
where to write code for MX record and in which file....
 
Old 04-21-2011, 12:08 PM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by centos123 View Post
thnks for replying
when i send mail form console mode i recived every mail.but not from squirrel mail.

so now what should i have todo for that.
where to write code for MX record and in which file....
If it works from the console then configure squirrel mail to send using the same sender domain as the console uses.

MX record is part of DNS. It would be added on the DNS server for the domain.
 
  


Reply



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
Mail server not sending mail to location defined in MX record modulaaron Linux - Software 3 12-19-2010 07:57 PM
Sending mail with mail() and postfix when using namecheap's DNS and Email Hosting iLinx Linux - Server 2 07-19-2010 05:53 PM
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 09:43 PM
sending mail from win xp to linux imap mail server cvdsamy Red Hat 2 05-30-2009 12:37 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration