|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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.?
__________________
PHP manual | MySQL manual | Apache docs | Linux Documentation Project | Free Software Foundation Smart Questions HOWTO | PHP security | PHP FAQ | Posting HOWTO Wikipedia | English dictionary | Google | News | RFCs Thus Spoke Zarathustra | A Skeptic's Guide to Christianity | Project Gutenberg | Skeptic's Annotated Bible ParEcon | Marxists Internet Archive | The Memory Hole | Landover Baptist | DHMO Research Universal Declaration of Human Rights | UN Charter | Geneva Conventions Sinfest | Chopping Block | Filthy Lies | Bob the Angry Flower | How to Shoot Yourself In the Foot |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
Quote:
Code:
cd /etc grep -rHn www.prod_domain.com * |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
Quote:
Add this line to your sendmail.cf: Code:
DSsmtp:mail.foobar.com. |
|
#8
|
|||
|
|||
|
Thanks any way , but the emails remain queued
JdV |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
It works now.
Thanks a lot. I inserted DSsmtp:mailserver on sendmail.cf and changed the localhost name: localhost gives problems. best regards JdV |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Problem Sending email |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|