LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2007, 08:21 AM   #1
MoMule
Member
 
Registered: Jul 2006
Posts: 134

Rep: Reputation: 15
I just want to send out mail!


My setup:

Mandriva 2005 mini running Apache2 and Simplehelpdesk (simplehelpdesk.com)
One network card with private IP of 10.96.29.107
DSL Internet connection through network(dynamic IP)
Pix Router which I do not have authorization to access (don't know if this plays into the problem or not)
All Windows SMTP port configurations (inside Outlook) point to 587

Simplehelpdesk allows for ticket submitters to receive e-mail notifications when updates are entered. Simplehelpdesk had a typo in a php file for sending mail, which I corrected.

Here is a sample of my /var/log/mail/info:

Mar 20 08:02:59 help postfix/pickup[4984]: B08B754F: uid=71 from=<apache>
Mar 20 08:02:59 help postfix/cleanup[5084]: B08B754F: message-id=<20070320140259.B08B754F@help.needhelp.com>
Mar 20 08:02:59 help postfix/qmgr[3402]: B08B754F: from=<apache@help.needhelp.com>, size=529, nrcpt=1 (queue active)
Mar 20 08:02:59 help postfix/smtp[5087]: connect to outside.mailserver.com[XX.XXX.X.XX]: No route to host (port 25)
Mar 20 08:03:00 help postfix/smtp[5087]: B08B754F: to=<user@outside.mailserver.com>, relay=none, delay=1, status=deferred (connect to outside.mailserver.com[XX.XXX.X.XX]: No route to host)

I haven't tried configuring anything on the server pertaining to mail.

The system does not need to receive mail; just send mail out to be delivered. What do I need to do?

Thanks,

Deion "Mule" Christopher
 
Old 03-20-2007, 02:42 PM   #2
MoMule
Member
 
Registered: Jul 2006
Posts: 134

Original Poster
Rep: Reputation: 15
Let me add that I am not able to type:

mail user@outside.mailserver.com
Subject: Test
Test
.
CC: user2@outside.mailserver.com
#

and have it sent out. I guess it all comes down to setting the server up so something like the above would at least work - I am guessing that if it did work, then the web-generated mail would work too...

Deion "Mule" Christopher
 
Old 04-13-2007, 08:00 AM   #3
MoMule
Member
 
Registered: Jul 2006
Posts: 134

Original Poster
Rep: Reputation: 15
Fixed

I managed to fix my own problem, and here's how.

Background:
Installed Mandriva 2005 Mini
Installed package Postfix and libsasl2
Internal IP of 10.96.29.107
My DNS entries point to my DNS Server running on 2003 Server, IP of 10.96.29.119, and .118

From all Windows XP machines on the network I could <telnet mail.myoffsiteemailhost.com 25> and receive a response

From the Linux box I couldn't reach the host after running <telnet mail.myoffsiteemailhost.com 25>
I Found out later that I needed to use port 587 and after <telnet mail.myoffsiteemailhost.com 587> on the Linux box the mail server finally responded. ((Does anyone have a clue as to why XP machines would respond to port 25, but the Linux box wouldn't?))Sending mail from the Linux box produced no route to host errors.

So with this info, I plugged into /etc/postfix/main.cf the following lines <fallback_relay = mail.myoffsiteemailhost.com:587> and <relayhost = mail.myoffsiteemailhost.com:587>

I then tried to send out mail with <mail me@myoffsiteemailhost.com - Subject: Test - Testing - . EOF>
and received errors in /var/log/mail/info about can't SASL authenticate to server with no mechanism available

I then added the following lines to /etc/postfix/main.cf <smtp_sasl_auth_enable = yes>, <smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd>, and <smtp_sasl_security_options =>
Then I created a file in /etc/postfix/ called sasl_passwd and put in there <mail.myoffsiteemailhost.com me@myoffsiteemailhost.com:mypassword>
Then I saved the file. I then <chown root:root /etc/postfix/sasl_passwd>, and <chmod 600 /etc/postfix/sasl_passwd>, followed by the command <postmap hash:/etc/postfix/sasl_passwd>

##NOTE I received the instructions above from http://www.tribulaciones.org/docs/po...tls-howto.html under the heading of 2. Client##

I then checked /var/log/mail/info and received more errors.

CURRENT STATUS:

I scoured Google's results to find many people with the same problem and no solution.

I figured out my problems by fiddling around with it until something positive happened:

First I verified that I had libsasl2 installed. It was, but for some reason I kept receiving errors pertaining to it.

On a whim I <urpmi libsasl2-plug-login libsasl2-plug-plain>, followed by <service postfix restart> and instantly my inbox received a large amount of test messages that had been stored in the Linux box!

I did some more testing, and I believe that all that is actually needed is the libsasl2-plug-login, but included the libsasl2-plug-plain in case someone reading this needs it too...

I really hope to hear if this has helped anyone else!

Deion "Mule" Christopher
 
  


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
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Unable to send mail to some mail servers due smtp greetings malformed atotomex Linux - Networking 6 12-20-2005 04:38 PM
how to configure mail client to send mail out on different pppd threads vkrishn1 Linux - Newbie 0 12-29-2004 10:54 AM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
Cannot send mail with mail() command in PHP 4.3.4, Apache 2.0.48, Mandrake Linux 10 arcanum Linux - General 3 06-27-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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