LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   mailx problem (https://www.linuxquestions.org/questions/suse-opensuse-60/mailx-problem-646206/)

aral 06-01-2008 08:50 AM

mailx problem
 
Hello,
I put this:
Code:

env  MAILRC=/dev/null from="alsu@yahoo.com" smtp=smtp.server_address.com \
                smtp-auth-user=alsu@yahoo.com smtp-auth-password=password\
                smtp-auth=login nail -n -s "subject" \
                -a attachment_file dest_address@yahoo.com

in my .profile file and I wrote this at the command line:

Code:

$nail
  Subject :  sub
  mail  text  mail  text
ctrl+d

The destination email address doesn't get the mail.
I get undelivered mail which says :

delivery temporarily suspended: connect to b.mx.mail.yahoo.com[66.196.97.250]: Connection timed out

I also tried to put the configuration in the .bashrc file instead of the .profile file , but it still doesn't work . Does anyone know why ?

datopdog 06-01-2008 10:39 AM

Connection time out means that you cannot connect to port 25, double check that something is not blocking the port.

aral 06-01-2008 11:32 AM

I opened port 25 in the Suse firewall, but it still doesn't work.

datopdog 06-01-2008 11:49 AM

This is not a problem with inbound connections, if i am not mistaken the suse firewall does not blockout bound connections.

Your problem could be your ISP blocking port 25 to the internet.

Test that you can connect out on port 25

Code:

telnet a.mx.mail.yahoo.com 25

aral 06-01-2008 11:57 AM

when I put telnet a.mx.mail.yahoo.com 25
it says
Code:

Trying 209.191.118.103...
telnet: connect to address 209.191.118.103: Connection timed out

Can I do something about it ? Can I avoid it somehow ?
Also my antivirus sends mail to my address if I have a virus, and I set it up with the same mail server and same ISP that I edited in .profile . How is this possible ?

datopdog 06-01-2008 01:41 PM

Use your ISP's smtp server.


All times are GMT -5. The time now is 02:42 AM.