In order to test the mail services working properly, testing needs to be performed. Instead of using GUI mail client or webmail to test the sending and receiving email,you also can use telnet. Telnet is the most basic mail client. It does the same thing as advanced mail client such as Microsoft Outlook and Mozilla Continue reading 'How to Test Posfix Mail Service using Telnet'. Dec 10, 2018 How to Send Email via SMTP Server from Linux Command Line (with SSMTP). Send mail with SMTP Linux command line. Setup SSMTP on your Linux system. How to Send Email via SMTP Server from Linux Command Line (with SSMTP). If you face issue like “send-mail: Cannot open smtp.gmail.com:587” Step 3 – Send Test Email. Now test the setup. I am testing my SMTP Server through wormly.com When I do the test, I end up with Message sending failed. I setup my mail server with the help of this Link
subodhsubodh
1 AnswerThis is the correct message since a third party website is connecting to your server and is not able to send out emails to external domains. Ideally, as per the configuration, if you send an email to one of your own domains, then it should be delivered. Had you been having an open relay, which means accepting emails for any domain, then it would be a big security risk and in no time your server would be blacklisted. It could also cause problems with your ISP for abuse. Testing out the email server I would highly recommend using services such as Mandrill.com to send out transactional emails rather than setting up your own server if you are inexperienced managing it. It can cause more harm than good. However, based on your comment, you need to setup and test out your mail server. That is not a trivial task and requires testing at various levels. Try the following at the basic level: a) Create a virtual domain, and a virtual user inside that domain b) Do a telnet to the port 25 of your server and send a mail to that domain and see if it's delivered. You can check the error logs through Now check if the email is delivered successfully through the error log. Once it's done, you'd know that incoming mails should work fine (provided A record/MX record for that domain is set correctly). Otherwise, based on the error, fix the issue. c) Now login into the server via ssh, and use mail command to send out the email Check the spam folder of gmail as most likely, if all went well, it would have landed there. This way you would be able to check out the outgoing email. If the java web application is residing on the same server, then you can use Once again, any wrong configuration can lead to misuse of the server, so be careful.
Vivek KapoorVivek Kapoor
Not the answer you're looking for? Browse other questions tagged 14.04postfixmail-server or ask your own question.Email is a tricky thing to do right, though a couple of simple tools can help you test your mail server before you start to use it, i.e. make sure mail can be delivered correctly to a users mailbox. Also it can help diagnosing certain problems that you might have with your email. POP - Post Office Protocol is for recieving mail, this is the slightly simpler service to use. SMTP - Simple Mail Transfer Protocol, this is used for delivery of mail between mail servers. There are certain rules that are useful when diagnosing problems with SMTP servers, check out www.dnsstuff.com and also www.dnsreport.com for more details. For more information regarding how to use telnet to POP3 or SMTP see the sections below: Telnet to POP3 It is possible, with many ISPs, to use a Telnet program to do maintenance on your mailbox on the POP3 mail server. This allows you to look at, and possibly delete, any problem causing message (e.g. too large to download, improperly formatted message, etc.) You'll be surprised how often this can happen especially if targeted by hackers who use 'mail bombs' to fill up your inbox. First load up a telnet client, such as the one included in windows. In Win '95, '98, click 'Start' then 'Run' then enter: telnet name.of.host portnumber telnet = The name of the program. name.of.host = The address of your mail server. (e.g. mail.fastisp.com) portnumber = The port used for mail, normally 110. You may want to enable 'local echo' so you can see what you are typing (quite handy!) Now Connect... 1. Enter the above command substituting the correct server address and port number. 2. You should now see this: '+OK InterMail POP3 server ready.' 3. Type: 'user yourusername' Where yourusername is your user name. 4. Assuming that is accepted type : 'pass yourpassword' where yourpassword is your password. 5. You should then see: ' +OK yourusername is welcome here' or something like it. 6. Now you can use the commands to edit your mail box see the list below: Telnet to SMTP Telneting to SMTP is quite straight forward, though for this example will use the following email addreses etc: Sender Address: [email protected] Reciever Address: [email protected] Reciever Mail Server: mail.givememail.com Connecting to SMTP Port Telnet to port 25 using the following command: telnet mail.givememail.com 25 If you are connected you should see something like:
Now you need to use the HELO command followed by the senders domain i.e. sendthatmail.com: helo sendthatmail.com Now you have done that you should see:
Now you need to enter the 'MAIL FROM:' command followed by the sender's whole email address: mail from: [email protected] You will then see:
Now put in the reciever address using the command: rcpt to: [email protected] You will then see:
Now you need to type in the mail message use the 'DATA' command as shown below: data Once completed you should see this:
Sms 12.1 symmetric hurricanes vs. Now when you are done, type in 'QUIT' to end the session. Below is a quick summary that I found from the Internet regarding this, quite handy just for quick reference: root@Linux:/> telnet mailhub.somedomain.com 25
0 Comments
Leave a Reply. |