Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to config LAMP server. Encountered problem on running;
$ sudo telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
(hanging here sometimes - then popup)
421 server1.example.com Error: timeout exceeded
Connection closed by foreign host.
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
(it was waiting here. Then I typed)
ehlo localhost
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
(it was further waiting here. Then I typed)
quit
221 Bye
Connection closed by foreign host.
Well you can use whatever domain you want (existing or not existing) as yourdomain.com (you can also leave it as is or use localhost) and a valid email address to get the email (replace recipient@otherdomain.com).
But keep in mind that most mailservers do not accept mail from a host who's IP does not resolve to a domain. So you can test it locally (i.e send an email from you to yourself).
Well you can use whatever domain you want (existing or not existing) as yourdomain.com (you can also leave it as is or use localhost) and a valid email address to get the email (replace recipient@otherdomain.com).
But keep in mind that most mailservers do not accept mail from a host who's IP does not resolve to a domain. So you can test it locally (i.e send an email from you to yourself).
Performed 2 tests as follows;
1)
$ telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo satimis.com
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from:myself@satimis.com
250 Ok
rcpt to: satimis@abc.com
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: Test
this is a test. This is a test, a test, a test
.
250 Ok: queued as 91384754034
(It is waiting here. What shall I input?)
421 server1.example.com Error: timeout exceeded
Connection closed by foreign host.
Failed.
2)
$ sudo telnet localhost 25
Password:
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo satimis.com
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: myself@satimis.com
250 Ok
rcpt to: satimis@abc.com
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject:Test
This is a test, a test, a test
<CR><LF>.<CR><LF>
.
250 Ok: queued as BD396754040
(It is still waiting here}
Also failed
Furthermore sending a email to myself I still have to going through ISP. I think I have to register a free domain to continue this test.
After the dot that end the mail data you must give quit to quit the telnet session.
Instead of rcpt to: satimis@abc.com (I guess it's not real), why don't you use rcpt to: satimis@localhost to see if you can send/receive locally (assuming the user satimis exists) and use whatever account you have in webmail services like gmail, hotmail etc to see if you can send outside your box.
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo satimis.com
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: myself@satimis.com
250 Ok
rcpt to: satimis@localhost
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: Test
This is a test, a test, a test
.
250 Ok: queued as CEAE9754049
quit
221 Bye
Connection closed by foreign host.
You have new mail in /var/mail/satimis
$ nano /var/mail/satimis
Yes I received the mail.
Also sent it to webmail a/c on yahoo.com. But up to the time of writing I haven't received it.
Also sent it to webmail a/c on yahoo.com. But up to the time of writing I haven't received it.
Most likely you're not going to receive it since your IP must resolve to a valid hostname. If that's not true the other mailserver rejects the message to prevent spam.
Also sent it to webmail a/c on yahoo.com. But up to the time of writing I haven't received it.
Quote:
Originally Posted by bathory
Most likely you're not going to receive it since your IP must resolve to a valid hostname. If that's not true the other mailserver rejects the message to prevent spam.
Yes, Yahoo is picky. To see yourself what your mailer is encountering, you can talk to them just like you talk to your own SMTP server:
Code:
telnet a.mx.mail.yahoo.com 25
Normally you get "Message temporarily deferred", and the door slammed in your face. It's not really temporary -- it'll never work. See http://help.yahoo.com/help/us/mail/defer/defer-06.html
To fix, go to http://add.yahoo.com/fast/help/us/mail/cgi_defer and tell them your IP address is not "naughty". Yes, they take your word for it. Since I told then that my IP was "nice", their SMTP server has been polite, and I just sent myself a mail.
You reported this experiment:
Code:
354 End data with <CR><LF>.<CR><LF>
subject: Test
This is a test, a test, a test
.
"Subject" should be capitalized. And there should be an empty line between the headers (Subject, Date, From, To, ...) and the body of the message.
Quote:
Originally Posted by http://www.ietf.org/rfc/rfc2822
A message consists of header fields (collectively called "the header
of the message") followed, optionally, by a body. The header is a
sequence of lines of characters with special syntax as defined in
this standard. The body is simply a sequence of characters that
follows the header and is separated from the header by an empty line
(i.e., a line with nothing preceding the CRLF).
1. What is your name
myname
2. What is your email address
myname@yahoo.com
3. What domain(s) are you contacting us about
satimis.com
4. Indicate the specifi IP address of the mail server experiencing the issue
myself@satimis.com
Please enter your feedback
No mail received
An acknowledge webmail was received from Yahoo.
Sent myself a webmail as follow;
$ telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo satimis.com
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: myself@satimis.com
250 Ok
rcpt to: myname@yahoo.com
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test
This is a test, a test, a test
.
250 Ok: queued as 58B9D75404C
quit
221 Bye
Connection closed by foreign host.
But the webmail never come. I have been waiting for more than half hour. Just checked Yahoo website before answering this thread.
Well you can use whatever domain you want (existing or not existing) as yourdomain.com (you can also leave it as is or use localhost) and a valid email address to get the email (replace recipient@otherdomain.com).
But keep in mind that most mailservers do not accept mail from a host who's IP does not resolve to a domain. So you can test it locally (i.e send an email from you to yourself).
Noted with tks.
I suppose your advice sending mails is the backend. The front end software will be evolution, thunderbird, etc.? Tks.
It seems that you cannot even establish a connection. That's not what I get from Yahoo. Possibly you ISP is blocking port 25? (Some are nasty.) Try any other host (non Yahoo). You have to fix this first.
Quote:
2)
without "a.mx."
You changed the name. By chance, there happens to be a host "mail.yahoo.com".
Quote:
The IP address is AltaVista Company.
That's indeed odd, but don't worry about it.
Quote:
What is "a.mx."?
Arbitrary substring of the hostname You cannot pick it apart like that. (Apart from domain ownership/delegation considerations below yahoo.com, which shouldn't bohther you.)
But you may wonder how I got the name. Here's how:
1) You want to send mail to, say, "satimis@yahoo.com"
2) The mail domain is the part after the '@', i.e., "yahoo.com".
3) Find which hosts handle mail for that domain:
Code:
host -t mx yahoo.com
4) Pick one of the results. Not sure, but I think lower score is "better", i.e., what the owner of the MX records prefers you to use. Out of the 8 answers that I got for "yahoo.com", I picked "a.mx.yahoo.com"
5) To send mail, carry an SMTP dialog (port 25) with that host.
Quote:
Sent Yahoo following info;
Code:
1. What is your name
myname
2. What is your email address
myname@yahoo.com
3. What domain(s) are you contacting us about
satimis.com
4. Indicate the specifi IP address of the mail server experiencing the issue
myself@satimis.com
An IP address is four bytes, usually written as dotted (decimal) quad, e.g., 66.45.232.66.
Quote:
Sent myself a webmail as follow;
$ telnet localhost 25
It seems that you cannot even establish a connection. That's not what I get from Yahoo. Possibly you ISP is blocking port 25? (Some are nasty.) Try any other host (non Yahoo). You have to fix this first.
Now I have "satimis.homelinux.com", a free domain with dynamic IP, registered with dyndns.org.
I suppose my email address there is "satimis@satimis.homelinux.com". If I'm wrong please correct me.
Performed another test as follow:
$ telnet localhost 25
Code:
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix (Ubuntu)
ehlo satimis.homelinux.com
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250 8BITMIME
mail from: satimis@satimis.homelinux.com
250 Ok
rcpt to: satimis@writeme.com
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject: Test
This is a test, test
.
250 Ok: queued as D203375405C
quit
221 Bye
Connection closed by foreign host.
The email never arrived.
$ host -t mx writeme.com
Code:
writeme.com mail is handled by 10 writeme-com.mr.outblaze.com.
writeme.com mail is handled by 20 writeme-com-bk.mr.outblaze.com.
$ telnet writeme-com-bk.mr.outblaze.com 25
Code:
Trying 64.71.166.195...
it only hanging here.
How to check whether port 25 is blocked by ISP? If YES how to by-pass this blockage? Tks.
3. What domain(s) are you contacting us about
satimis.com
4. Indicate the specifi IP address of the mail server experiencing the issue myself@satimis.com
I suppose I have to change them as;
Code:
1. What is your name
satimis
2. What is your email address
satimis@yahoo.com
3. What domain(s) are you contacting us about
satimis.homelinux.com
4. Indicate the specifi IP address of the mail server experiencing the issue
satimis@satimis.homelinux.com
I haven't sent them yet. I have to sort out "port 25" problem first.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.