Why can't I send messages to a remote domain


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Why can't I send messages to a remote domain
# 1  
Old 02-12-2009
Question Why can't I send messages to a remote domain

Hi there,
I rent two servers hosted by the same provider: OVH.
On server1, I use the mail command to send alert emails to my personal address and it works fine.
On server2, which is newly instaled, I tried the following command and got this answer:
Quote:
r16088:~# mail -v -s 'subject' myaddress@mydomain.fr <<< 'message'
LOG: MAIN
<= root@stock.ovh.net U=root P=local S=351
delivering 1LXeuA-0001pw-JE
R: nonlocal for myaddress@mydomain.fr
LOG: MAIN
** myaddress@mydomain.fr R=nonlocal: Mailing to remote domains not supported
r16088:~# LOG: MAIN
<= <> R=1LXeuA-0001pw-JE U=Debian-exim P=local S=1182
delivering 1LXeuA-0001py-Rl
R: system_aliases for root@stock.ovh.net
R: system_aliases for ovh@stock.ovh.net
LOG: MAIN
** ovh@stock.ovh.net <root@stock.ovh.net>: Unrouteable address
LOG: MAIN
Frozen (delivery error message)
LOG: MAIN
Completed

r16088:~#
Is there any other package that I need to install?
Thanks for your help?
Santiago
# 2  
Old 02-12-2009
Have you configured your /etc/exim/exim.conf file? (May be exim4/exim4.conf on Debian)
# 3  
Old 02-13-2009
Thanks fpmurphy for your answer.
You're totally right, it looks like the config file are under /etc/exim4/.
So I copied the parameters from server1 to server2.
Quote:
supernova:~# cat /etc/exim4/passwd.client
*:xxxxxxxx.xxxx@xxxxx.xx:xxxxxxxxxx
supernova:~# cat /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost='supernova.caoba.fr'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::465'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
As you can see, one file stores the address of the gmail smtp server. The other one contains my login and password (in clear text, sic!).
So it looks like now, mailx is connecting to the gmail server. But it freezes at some point. I know gmail uses a ssl something and I can't find where it is configured on server1.
Quote:
supernova:~# mail -v -s 'subject' xxxxxxxx.xxxx@xxxxx.xx <<< 'message'
LOG: MAIN
<= root@stock.ovh.net U=root P=local S=359
delivering 1LXu85-0005fD-Bw
R: smarthost for xxxxxxxx.xxxx@xxxxx.xx
supernova:~# T: remote_smtp_smarthost for xxxxxxxx.xxxx@xxxxx.xx
LOG: retry_defer MAIN
== xxxxxxxx.xxxx@xxxxx.xx R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host
Any advice so I can move one step forward?
Santiago
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run remote command and send email

I am currently try to write a simple script with the following condition, but so far not having luck as the exit code would always be 0. Run remote command to read a file and grep for test word. if test word is in the file, send email. if not, do nothing also possible to ssh to multiple... (3 Replies)
Discussion started by: jaapar
3 Replies

2. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

3. Red Hat

How to send specific logs to remote rsyslog?

Assuming i have /usr/local/psa/var/log/mail.log on client server. What are the configuration on rsyslog (server) and rsyslog (client)? on rsyslog (server) i would also want it to be put on a separate log file for example: /var/log/client-server-hostname01/mail.log ,... (2 Replies)
Discussion started by: timmywong
2 Replies

4. Red Hat

Not able to send an email from a particular domain.

HI Gurus, I have a RHEL (5.5) VM. I am able to send email to a particular domain abc.com but when I am trying to send a different domain(xyz.com) it is not working can you please throw some light on how to start debugging this issue. Thanks in advance. RK (0 Replies)
Discussion started by: rama krishna
0 Replies

5. AIX

I Need to send mail to 2 domain

Hi, I need to send alert mail from AIX to mail server. My mail server IP is 192.168.0.10 so I've add /etc/hosts as below 192.168.0.10 mydomain1.com the I try to send mail to myname@mydomain1.com it's OK Then I need to send mail to myname@mydomain2.com too. so I've... (1 Reply)
Discussion started by: oakmojo
1 Replies

6. UNIX for Dummies Questions & Answers

[SOLVED] Command line mail taking too long to send; unable to qualify my own domain name

Hello, I'm having a problem with my mail. When I send mail, it takes a long time for the send to complete. In the below, datestamp is just a simple script to put in a no-white-space date/time stamp. $ datestamp ; mail woodnt; datestamp 02-05-10@193844 Subject: test timer Cc: ... (0 Replies)
Discussion started by: Narnie
0 Replies

7. Shell Programming and Scripting

How can i send mail to multiple addresses in same domain in bash?

Suppose i have a txt file that is the list of the addresses,something like: lala0045 john james lala0234 george james and i want to send an email to lala0045@blabla.com and lala0234@blabla.com,the same domain...what is the exact syntax i should use in my script? there is a command... (10 Replies)
Discussion started by: bashuser2
10 Replies

8. UNIX for Dummies Questions & Answers

Send email with attachement-Getting connection refused by domain

Hi all, I am a newbie to unix. I need to send an email with an attachment in unix to some id like abc@some_company.com Code i have used is ------------Code--------------------------- #!/bin/ksh set -x #set -n #cript: unix_mail_withattachments.ksh # Aurthor: Ravin Maharaj #... (1 Reply)
Discussion started by: samuelc
1 Replies

9. UNIX for Dummies Questions & Answers

How to send files to remote tape drive

We have 2 UNIX machines, 1.HP-UX 11i where oracle database running on it. 2.AIX 5 with Ultrium LTO3 tape drive connected. My query is, i want to send oracle database archive files from HP machine to the tape drive which connected on AIX machine, everyday. These files should be appended. I... (3 Replies)
Discussion started by: yashdbad
3 Replies

10. UNIX for Dummies Questions & Answers

send message to a remote system

I am analyzing snoop output and want to send "Hello world" to a remote system. I want to see if the message received is encrypted or not. can I use ping to send a text message? like ping "helloworld" <IP Addr> Please help. Thank you (5 Replies)
Discussion started by: rakeshou
5 Replies
Login or Register to Ask a Question