LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-02-2009, 01:55 PM   #16
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899

Quote:
I'm sure however that my server at work is NOT connecting on port 25 to Gmail for enterprises.
Correct, I also use smtp.gmail.com and port 465
 
Old 08-02-2009, 02:04 PM   #17
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by repo View Post
Try
Code:
telnet smtp.gmail.com 465
Yes, this works, with iptables on!!! How do I close it?

No, really, what could be wrong? sendmail uses port 25! I remember I saw smtp in tcpdump, and that is 25 in /etc/services.

Good, I heard sendmail is so easy to configure! If I don't ask too much, please give a clue.
 
Old 08-02-2009, 02:06 PM   #18
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
type quit

Take a look to configure sendmail to use smtp.gmail.com as a relay
http://www.phinesolutions.com/sendma...lay-howto.html
 
Old 08-02-2009, 02:19 PM   #19
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by okcomputer44 View Post
Almost all provider do that now days. Because of the lovely virus/maleware infections on Windows clients.

You must configure the smart host under sendmail.mc to point to the ISP's smtp server.

The telnet wont work either because of that.
Only the secure smtp(465) allowed to send mail to outside world from local server.

Laz
Thanks, I will look into that. I'm not sure my provider actually offers a smtp server for my use.
Where is the doc for sendmail.mc?
Maybe you can tell me how to config sendmail for 465, because telnet smtp.gmail.com 465 worked for that.
 
Old 08-02-2009, 02:22 PM   #20
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
http://www.linuxha.com/other/sendmail/gmail.html
You really should try google,
 
Old 08-02-2009, 02:28 PM   #21
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by repo View Post
type quit

Take a look to configure sendmail to use smtp.gmail.com as a relay
http://www.phinesolutions.com/sendma...lay-howto.html
Thanks, sendmail site could have been more helpful. I should answer within 12 hours.

Last edited by doru; 08-03-2009 at 02:45 AM. Reason: clarification
 
Old 08-02-2009, 02:33 PM   #22
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by repo View Post
Yes, I did a lot of google to get here, and after I read in a number of places that sendmail is difficult to configure, and I found no mention of sendmail.mc in sendmail man, I sort of panicked. Thanks for the links, anyway, it is much easier to find when you know already.
 
Old 09-16-2009, 09:29 AM   #23
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
I'm back after more than 12 hours. This is what happened:

1. I tried to configure sendmail using the links repo gave me. It didn't work, I could not find other links, I concluded sendmail is more complicated than what I need and that configuring it is way above my current linux level.

2. I tried to uninstall sendmail in order to install qmail, but
Quote:
yum remove sendmail
uninstalled most of my Fedora 11 system, yum included. See: http://forums.fedoraforum.org/showth...67#post1246267
I concluded that Fedora is too "cutting edge" for me.

3. I installed Ubuntu server with mail Internet server included. Local mail, between two users on the same machine, which was working in Fedora 11, did not work on Ubuntu server with mail Internet included. See:
http://ubuntuforums.org/showthread.php?t=1266153

I concluded that there is a conspiracy against mail on Linux, and I decided to live without it for a while.

I also consider the install of qmail on Ubuntu. qmail does not have binary packages in default Ubuntu repositories, and it has several different versions for different versions of Debian. qmailrocks.org does not treat Ubuntu.
 
Old 09-16-2009, 11:33 AM   #24
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by doru View Post
/var/log/maillog says "Connection timed out".

My address is: root@localhost.localdomain, but still, yahoo should establish smtp connection.

I am reluctant to disable iptables, for security reasons. I hope I can verify other issues before I try this. On one hand, I believe that tcpdump sees outside iptables, so it should see any response. On the other hand, iptables is fairly complicated, maybe it does not identify smtp connections.
You cannot use root@localhost.localdomain as your address for mail deliveries. Modern mail handling software won't forward any traffic unless the originator's e-mail address corresponds to the reply address in the e-mail.

Have you looked in /var/log/maillog to see the details of why the transaction failed?
 
Old 09-16-2009, 12:13 PM   #25
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Just install qmail, and disable sendmail.
 
Old 09-20-2009, 01:16 AM   #26
lawadm1
Member
 
Registered: Jul 2003
Location: Illinois
Distribution: Fedora 11, Ubuntu 9.04
Posts: 80

Rep: Reputation: 15
Was there any resolution to this? I installed Fedora 11 and I'm having the same problem.

When I try:
telnet smtp.google.com 25

I get:

Trying 74.125.45.25...
Connected to smtp.google.com.
Escape character is '^]'.
220 smtp.google.com ESMTP
<After about 30-40 seconds I get the message below>
Connection closed by foreign host.

I'm using Sendmail and Dovecot.
 
Old 09-20-2009, 01:50 AM   #27
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
You really should read the thread before asking if there is a solution yet. As stated somewhere in this thread smtp.google.com rejects connecting on port 25 and only accepts connections on the secured port 465.

Kind regards,

Eric
 
Old 09-20-2009, 08:23 AM   #28
lawadm1
Member
 
Registered: Jul 2003
Location: Illinois
Distribution: Fedora 11, Ubuntu 9.04
Posts: 80

Rep: Reputation: 15
I did read the whole thread. I'm confused to why I do connect using 25, but I do not using 465, even with iptables stopped.

And I didn't see anything about what it is we need to do to get this to work. I saw something about installing qmail or using smart host, but if someone could elaborate on that a little more that might help me out. I've been unable to find documentation that has helped.

It's been a couple of years since I have dealt with setting any of this stuff up. I had a server running Fedora 6 where I had everything working great, and I went straight to Fedora 11 where I can hardly get anything to work, even the display settings.

Jeff
 
Old 09-20-2009, 10:09 AM   #29
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at
http://www.scalix.com/wiki/index.php...s_a_SMTP_relay
 
Old 09-21-2009, 07:56 AM   #30
doru
Member
 
Registered: Sep 2008
Distribution: Ubuntu 8.04 LTS Server
Posts: 138

Original Poster
Rep: Reputation: 19
Quote:
Originally Posted by lutusp View Post
You cannot use root@localhost.localdomain as your address for mail deliveries. Modern mail handling software won't forward any traffic unless the originator's e-mail address corresponds to the reply address in the e-mail.

Have you looked in /var/log/maillog to see the details of why the transaction failed?
I tried user, user@127.0.0.1, user@localhost, they don't work. I don't receive error messages back.

Yes, I looked into logs, you may see the report here:
http://ubuntuforums.org/showthread.php?t=1266153

Thanks for your answer.
 
  


Reply

Tags
sendmail, smtp



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
syslog to email at @ yahoo or gmail serabut Linux - Software 2 12-13-2006 10:43 PM
Strange problem with Yahoo and Gmail Hitboxx Fedora 4 10-15-2006 07:11 PM
Mail server implementation of gmail,yahoo etc... naveenrajn Linux - General 0 01-10-2006 01:27 AM
yahoo marks Gmail messages as spam arunswarup General 8 11-04-2005 09:45 AM
How to hear conference call at Yahoo? mfeat Red Hat 2 01-20-2004 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:46 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