#1  
Old 3rd December 2007, 13:59
hiren_patel hiren_patel is offline
Junior Member
 
Join Date: Dec 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sendmail Problem

Hi everybody,
i am currently working on Ubuntu 7.04,
in this system we are facing sendmail problem,
we have two hosts setup on our server, like test3.test.com and test.com.
Also we have google hosted email service for test.com.
If we send mail to any user of test.com using sendmail then the mail returns locally but we need that it sends the mail to google hosted account.
If we send mail to any other domain then the sendmail is working, but if we send the mail to our own domain through sendmail then the mail returns to the system itself.

The mail log is as follows :

Dec 3 06:08:40 test3 sendmail[21742]: lB3C8ZkK021742: from=root, size=6, class=0, nrcpts=1, msgid=<200712031208.lB3C8ZkK021742@test3.test.com> , relay=root@localhost
Dec 3 06:08:40 test3 sm-mta[21743]: lB3C8eqF021743: <hiren@test.com>... User unknown
Dec 3 06:08:40 test3 sendmail[21742]: lB3C8ZkK021742: to=hiren@test.com, ctladdr=root (0/0), delay=00:00:05, xdelay=00:00:00, mailer=relay, pri=30006, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Dec 3 06:08:40 test3 sm-mta[21743]: lB3C8eqF021743: from=<root@test3.test.com>, size=6, class=0, nrcpts=0, proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1]
Dec 3 06:08:40 test3 sendmail[21742]: lB3C8ZkK021742: lB3C8ZkL021742: DSN: User unknown
Dec 3 06:08:40 test3 sm-mta[21743]: lB3C8eqH021743: from=<>, size=1998, class=0, nrcpts=1, msgid=<200712031208.lB3C8ZkL021742@test3.test.com> , proto=ESMTP, daemon=MSP-v4, relay=localhost [127.0.0.1]
Dec 3 06:08:40 test3 sm-mta[21743]: lB3C8eqH021743: to=<root@test3.test.com>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31998, dsn=2.0.0, stat=Sent
Dec 3 06:08:40 test3 sendmail[21742]: lB3C8ZkL021742: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31030, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (lB3C8eqH021743 Message accepted for delivery)

thanks for any help in advance
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2009, 08:55
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Hi,

Do you solve this problem? I got same problem.

Regards
Reply With Quote
  #3  
Old 6th January 2009, 10:01
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

You need to remove test.com from /etc/mail/local-host-names and ensure that the MX record points to google.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #4  
Old 6th January 2009, 10:33
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Hi,

I dont have a test.com on /etc/mail/local-host-names, only localhost.localdomain and localhost.

How to point the mx record to google?

any example.

Also I dont have binds running in my box, do I need to install binds?

Thanks you,
Reply With Quote
  #5  
Old 6th January 2009, 10:36
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

you do not need to install bind as long as you have name servers in /etc/resolv.conf

when you run the command
Code:
dig mx test.com
what MX record is returned,
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #6  
Old 6th January 2009, 10:48
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Here's the result

[root@neoserver mail]# dig mx localhost

; <<>> DiG 9.3.4-P1 <<>> mx localhost
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 55714
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;localhost. IN MX

;; AUTHORITY SECTION:
. 10800 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2009010600 1800 900 604800 86400

;; Query time: 730 msec
;; SERVER: 202.124.128.2#53(202.124.128.2)
;; WHEN: Tue Jan 6 17:47:18 2009
;; MSG SIZE rcvd: 102
Reply With Quote
  #7  
Old 6th January 2009, 10:51
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

mail for the localhost will always go to the local machine you cannot send it else where unless you alias the accounts.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #8  
Old 6th January 2009, 10:59
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Hi,

What should i do? I can send email in yahoo, hotmail, gmail but in our domain sending fail.

Here's bounce mail error.

The original message was received at Tue, 6 Jan 2009 16:47:15 +0800
from root@localhost

----- The following addresses had permanent fatal errors -----
user@somedomain.com
(reason: 550 5.1.1 <user@somedomain.com>... User unknown)
(expanded from: user@somedomain.com)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <user@somedomain.com>... User unknown
550 5.1.1 user@somedomain.com... User unknown
<<< 503 5.0.0 Need RCPT (recipient)
Reply With Quote
  #9  
Old 6th January 2009, 13:17
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

From the error message the user account does not exist that is where you get that error you need to add the user to the system.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #10  
Old 7th January 2009, 02:20
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
 
Default

Hi,

The account is valid in our domain. Do you have any idea on this problem?

Regards,
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Sendmail / php spam problem Jorem Server Operation 3 20th June 2007 15:54
Postfix sendmail problem. mtyme Installation/Configuration 8 18th June 2007 19:59
Problem with sendmail P Lao Server Operation 4 7th November 2006 07:43
Problem in sendmail configuration satish Suggest HOWTO 1 9th March 2006 19:29


All times are GMT +2. The time now is 02:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.