Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 13th, 2003, 10:33 AM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem Sending email

I just cloned a Red Hot 8 ( production) machine to have an development enviremont.

Every thing seems to work fine except 'email'.

I use the command:

mail my_email@address

On the production machine the email arrives inmmediately.
On the cloned one (Development machine) it doesn't work.

I've very little experience on linux but I have to solve this problem, for my boss, to test some php scripts which send mail.

Can somebody help and tell me which changes are needed on the cloned machine to get 'mail' working. Or any thing else which can help

Thanks in advance

Reply With Quote
  #2  
Old May 13th, 2003, 11:24 AM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
Does DNS work fine, too? (I. e., have you set a new hostname on the clone?) Do you get any useful errors if you run mail with the -v flag and/or in /var/log/mail etc.?

Reply With Quote
  #3  
Old May 14th, 2003, 03:30 AM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DNS works fine too and there are not logs on /var/log or /var/log/mail.

Running mail with the -v flag: it gives a "(will queue)" message.
I do not receive the mail.

the full line is:
250 2.1.5 <myemail@address.com>... Recipient ok (will queue)
____

Thanks again
JdV

Reply With Quote
  #4  
Old May 14th, 2003, 05:08 AM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hello,

After some changes and a reboot, I do not get any more the message ""(will queue)".

but after running email with the -v flag again I get:

250-www.prod_domain.com Hello www.prod_domain.com[127.0.0.1], pleased to meet you

The old production-machine domain name remains somewhere present in some configuration file, and perhaps because of this the mails are not send. Any idea where?

In etc/sysconfig/network I changed the Hostname entry from old production-machine domain (www.prod_domain.com) to localhost
HOSTNAME=localhost

but it doesn't help.

Any ideas will be greatly appreciated
Thanks in advance
JdV

Reply With Quote
  #5  
Old May 14th, 2003, 01:46 PM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
Quote:
Originally posted by Jose Del Valle
The old production-machine domain name remains somewhere present in some configuration file, and perhaps because of this the mails are not send. Any idea where?

Code:
cd /etc
grep -rHn www.prod_domain.com *

Reply With Quote
  #6  
Old May 15th, 2003, 05:59 AM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for all the help.

I think the problem to get mail send is the SMTP configuration which is using DNS to send the mails.

How can be SMTP configurated to get all emails forwarded to a specific mail server?

Thanks

Reply With Quote
  #7  
Old May 15th, 2003, 10:40 AM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
Quote:
Originally posted by Jose Del Valle
How can be SMTP configurated to get all emails forwarded to a specific mail server?

Add this line to your sendmail.cf:
Code:
DSsmtp:mail.foobar.com.
(replace mail.foobar.com with your mail server) and restart sendmail. I'm not sure whether that change is sufficient; let's hope it is. Also update the old hostname if necessary.

Reply With Quote
  #8  
Old May 15th, 2003, 12:29 PM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks any way , but the emails remain queued

JdV

Reply With Quote
  #9  
Old May 15th, 2003, 01:04 PM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
What exactly did you change? Any traces of the old hostname still around in /etc (and /usr/local/etc, if you've got anything there)? Any log messages from sendmail?

Sorry for asking questions all the time, but it's hard to read your machine's mind.

Reply With Quote
  #10  
Old May 16th, 2003, 09:33 AM
Jose Del Valle Jose Del Valle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Posts: 12 Jose Del Valle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It works now.


Thanks a lot.

I inserted DSsmtp:mailserver on sendmail.cf and changed the localhost name: localhost gives problems.

best regards

JdV

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Problem Sending email


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway