LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-04-2013, 07:42 AM   #1
akamel
Member
 
Registered: Dec 2012
Posts: 100

Rep: Reputation: 1
Can't send emails from fedora linux terminal


Dears,

Can anyone help me with this? My emails are not send
All mails are stuck @ the mail queue. And once I get another Internet connections (especially at office) they went successfully. Please note that my connection @ home is great and my mail client (thunderbird) is ok.

Last edited by akamel; 07-04-2013 at 07:43 AM.
 
Old 07-04-2013, 07:44 AM   #2
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
I suspect in the dsl router, but I believe all configurations are ok as well.
 
Old 07-04-2013, 09:59 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
If you can send them from another connection, then it's not the computer.

Therefore it is something in your home network between the computer and your gateway.

If you are using wireless, try a cable, one that you know works. If you are using a cable, use a cable that you have tested elsewhere and are certain that it works. Cables do go bad--I had a connectivity problem that I eventually traced to the two-foot long cable from the modem to the router.

If your modem is separate from the router, try connecting directly to your modem with a cable and seeing whether the emails go. If they do, then it's the router or your connection with the router.

The key is to rule out possible sources of the problem, conclusively and methodically, one item at a time. Troubleshooting must be done with a scalpel, not a shotgun.

Last edited by frankbell; 07-04-2013 at 10:00 PM.
 
Old 07-05-2013, 04:19 AM   #4
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
Thanks!
But it's very strange case here, also I don't understand the different between the cable and the wireless connection in my case
FYi.. I'm using dsl router without any modems, and I have restored it to the factory default settings, but nothing changed.
 
Old 07-05-2013, 08:54 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,341
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
The fact that you said the emails were sent just fine on a different connection indicates to me that it's something, not the computer, in your home system. Therefore, it becomes necessary to find out just in which component that problem lies.

I can't explain any theoretical difference. Malfunctioning antenna, bad circuit on the board, short-circuits, bad chip--ultimately the software depends on the hardware.

I do know troubleshooting, and, in troubleshooting, testing every possible variable to find the source of the trouble is essential.

Also, testing the hardware components is often quicker and easier than testing the software components--it's a simple matter of swapping known-good items in place of existing items--tedious, but effective.

If you make sure that all the hardware components are okay, then you can troubleshoot software with some confidence. If it's hardware, all the software troubleshooting in the world won't fix it.

At least, that is my reasoning.

Last edited by frankbell; 07-05-2013 at 08:55 PM.
 
Old 07-05-2013, 09:18 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,344

Rep: Reputation: Disabled
What is your outgoing mail server?

If you're using the local MTA in Fedora (Postfix?), the default setting is probably to use DNS to deliver mail directly to the recipient's server. Most mail servers will reject mail from dynamic IP addresses, which could explain why your mails are stuck in the queue until you use a different Internet connection.
 
Old 07-06-2013, 02:13 AM   #7
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
Good point. I'm using CLI "echo test | mail -s "Hello" xyz@mycompanyname.com
Might be he can't solve this domain name.
 
Old 07-06-2013, 02:29 AM   #8
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
I believe that Port 25 is blocked by my ISP - SMTP

telnet example.com 25

Trying 173.194.35.22...
telnet: connect to address 173.194.35.22: No route to host
Trying 173.194.35.21...
telnet: connect to address 173.194.35.21: No route to host
Trying 2a00:1450:4002:801::1015...
telnet: connect to address 2a00:1450:4002:801::1015: Network is unreachable

How to bypass this and how to know my outgoing mail server in terminal?
 
Old 07-06-2013, 02:38 AM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,344

Rep: Reputation: Disabled
Quote:
Originally Posted by akamel View Post
Good point. I'm using CLI "echo test | mail -s "Hello" xyz@mycompanyname.com
...which means you're using the local MTA on your Fedora box to deliver mail. Unless you've configured Postfix to use authenticated SMTP against your ISP's SMTP relay, this isn't going to work reliably. Some mail servers may accept mail from your IP address while others won't.

Configure Postfix to use your ISP's smart host (relay) and use authentication, and you should be able to send mail anywhere regardless of the type of Internet connection you're using.
Quote:
Originally Posted by akamel View Post
Might be he can't solve this domain name.
As long as the domain name in question is registered and configured on the Internet and a mail server has been set up to receive mails for this domain, name resolution isn't likely to be an issue here.
 
Old 07-06-2013, 02:48 AM   #10
akamel
Member
 
Registered: Dec 2012
Posts: 100

Original Poster
Rep: Reputation: 1
Thank you very much!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Send emails from Linux Console Using Mutt,Mail & Telnet Command LXer Syndicated Linux News 0 05-06-2013 12:02 AM
send out emails fine but can't receive incoming emails said76 Linux - Server 7 07-05-2012 01:37 AM
LXer: Use Gmail To Send Emails From A Terminal (Shell) LXer Syndicated Linux News 0 11-06-2009 09:10 AM
LXer: Protect your Privacy! How to Send Encrypted Emails with Linux LXer Syndicated Linux News 0 02-07-2009 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration