LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-14-2009, 04:32 AM   #1
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Rep: Reputation: 16
Sendmail Problem


Hello,
I have a VPS that hosts a website, in this website there is a link to tell a friend about the website, that it sends an email. initially the problem is that when trying to send an email to an account under the domain of the same of website, the mail server could figure out that it had to handle them(Host them) instead of relaying them, but I could figure out the solution by using /etc/mail/mailertable, now the problem that I face is that when I send an email to that domain I recieve a bounce back email says:
while talking to XXX.XXX.XXX.XXX:

>>> DATA
<<< 550 Requested action not taken: mailbox unavailable
550 5.1.1 user@domain... User unknown
<<< 503 Need Rcpt command.

It seems that the 'RCPT TO' command is not passed, it only happens for that domain, anything else working smoothly.

Thanks in advance.
 
Old 10-14-2009, 05:49 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,058

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
Hi,

Haven't you already solved this problem?
Quote:
550 5.1.1 user@domain... User unknown
Does this user exist in the relay domain?
 
Old 10-14-2009, 06:06 AM   #3
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Original Poster
Rep: Reputation: 16
I did, the server now can figure out that its not its responsibility to host, but the problem when It sends to some1@XXX.XXXX.XXX.XXX which replaces some1@mydomain, I thought it was solved that day but they notified me yesterday that they're not recieving emails. It seems that 'RCPT TO' is not being sent, the user for sure exists on that mail server, everything is working for any email address excepts the domain itself.
 
Old 10-14-2009, 06:13 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,058

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
Can you send an email to that user by telneting directly the host xxx.xxx.xxx.xxx on port 25?
 
Old 10-14-2009, 06:37 AM   #5
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Original Poster
Rep: Reputation: 16
Sure I can, I did make various tests and worked successfully but relaying from the server for that domain it didn't work, any other domain also worked.
 
Old 10-14-2009, 07:11 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,058

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
Am I missing something? You have tested with telnet from your server and you can send email to that user, but the user never gets it? And you get bounced back "User unknown" from the relay host?
Maybe you have to notify the admin of the relay host to add your domain in the domains it accepts mail for.
 
Old 10-14-2009, 08:08 AM   #7
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Original Poster
Rep: Reputation: 16
Its like this:

# telnet localhost 25
HELO sci3ntist
MAIL FROM:myemail@mydomain.com
RCPT TO: some1@domain.com
DATA
Hello there.
.

This will not work,
# telnet mailserver 25
this will work.
 
Old 10-14-2009, 08:27 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,058

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
What is your mailertable? And what gives
Code:
sendmail -bv some1@domain.com
 
Old 10-14-2009, 09:45 AM   #9
sci3ntist
Member
 
Registered: Dec 2006
Distribution: Debian,Slackware,FreeBSD,CentOS,Red Hat,Windows Server 2008
Posts: 133

Original Poster
Rep: Reputation: 16
some1@domain... deliverable: mailer esmtp, host XXX.XXX.XXX.XX, user some1@domain
 
Old 10-14-2009, 01:00 PM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,058

Rep: Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355Reputation: 1355
So it's xxx.xxx.xxx.xxx that does not know anything about some1@domain
Why don't you use the other way around:
Add again your domain in /etc/mail/local-host-names, restart sendmail and use /etc/mail/virtusertable, like I said you in the other post:
some1@domain some1@[xxx.xxx.xxx]
 
  


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
sendmail.mc and sendmail-cf problem. ChrisScott Linux - Software 1 11-26-2006 01:30 PM
Sendmail problem manya Linux - Security 1 05-11-2006 10:15 PM
Problem with sendmail rhea Linux - General 2 02-20-2006 12:00 AM
problem processing sendmail.mc to sendmail.cf ...help... lucastic Linux - Networking 1 09-21-2003 10:08 AM
Sendmail problem: sm-client permissions problem d3funct Linux - Software 0 08-12-2003 05:00 PM


All times are GMT -5. The time now is 06:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration