LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-04-2008, 11:59 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Question Unable to Send Email From Squirrelmail


I have Debian - Postfix - Dovecot - Squirrelmail setup on my email server and I am perfectly able to send and receive email fine from Thunderbird with no issues.

When I login to Squirrelmail, I can read my email perfectly however when I try and send a message, I get the following message:

Command parameter not implemented
Server replied: 504 5.5.2 <192.168.0.100>: Helo command rejected: need
fully-qualified hostname


So basically it appears that when SM attempts to connect to the Postfix server, it is using a HELO command of its IP which does not conform to RFC 2821. I also have Postfix main.cf set to reject invalid HELO requests:

Code:
smtpd_helo_restrictions =
       permit_mynetworks,
       reject_invalid_helo_hostname,
       reject_non_fqdn_helo_hostname,
       reject_unknown_helo_hostname
Does anyone know how I can resolve this issue and have SM web GUI properly submit a properly formatted HELO request when sending mail via Postfix?
 
Old 09-04-2008, 01:46 PM   #2
Carl Filby
Member
 
Registered: Aug 2008
Location: Deep East Texas
Distribution: Debian,Ubuntu
Posts: 36

Rep: Reputation: 15
Have you set your FQDN using squirrelmail's conf.pl.
If set to:
trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')))
make sure /etc/mailname includes your FQDN
 
Old 09-04-2008, 01:55 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
I don't know if I have set the FQDN using SM conf.pl. Let me check in the working SM directory.

I did verify the following:

Code:
email:/var/log# cat /etc/mailname 
email.example.net
Everything looks correct there!

Thanks for the info!
 
Old 09-04-2008, 02:06 PM   #4
Carl Filby
Member
 
Registered: Aug 2008
Location: Deep East Texas
Distribution: Debian,Ubuntu
Posts: 36

Rep: Reputation: 15
set mailname to example.net, of course replacing example.net with your actual domain
 
Old 09-04-2008, 02:08 PM   #5
Carl Filby
Member
 
Registered: Aug 2008
Location: Deep East Texas
Distribution: Debian,Ubuntu
Posts: 36

Rep: Reputation: 15
is SM IMAP and SMTP server set to localhost?
 
Old 09-04-2008, 02:13 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
OK - I checked and it is set to:

trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')))

And when I cat /etc/mailname, I get the servers FQDN. Is this right?
 
Old 09-04-2008, 02:14 PM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by Carl Filby View Post
is SM IMAP and SMTP server set to localhost?
When I run the config.pl menu:

I have the following:

A. Update IMAP Settings : email.example.net:143 (dovecot)
B. Update SMTP Settings : email.example.net:25
 
Old 09-04-2008, 02:24 PM   #8
Carl Filby
Member
 
Registered: Aug 2008
Location: Deep East Texas
Distribution: Debian,Ubuntu
Posts: 36

Rep: Reputation: 15
set IMAP and SMTP to localhost and change /etc/mailname to example.net.

Is this mail server also acting as a DNS server?

Last edited by Carl Filby; 09-04-2008 at 02:25 PM.
 
Old 09-04-2008, 02:26 PM   #9
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by Carl Filby View Post
set IMAP and SMTP to localhost and change /etc/mailname to example.net.

Is this mail server also acting as a DNS server?
Intersting. I will do the changes you recommend and no, this is not acting as DNS.
 
Old 09-04-2008, 02:37 PM   #10
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by Carl Filby View Post
set IMAP and SMTP to localhost and change /etc/mailname to example.net.

Is this mail server also acting as a DNS server?
Fixed!!!

Thanks dude!
 
Old 09-04-2008, 02:39 PM   #11
Carl Filby
Member
 
Registered: Aug 2008
Location: Deep East Texas
Distribution: Debian,Ubuntu
Posts: 36

Rep: Reputation: 15
Your Welcome
that worked because localhost AKA 127.0.0.1 is in "mynetworks" which is allowed in your above restrictions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to send email from Sendmail rridler Linux - Software 26 07-13-2006 01:23 PM
Unable to send email "Relaying denied" ejain Linux - Software 2 05-21-2005 08:02 AM
Unable to send/receive email newlinuxgeek Linux - Software 2 01-10-2005 09:07 AM
unable to send email from outside of the local network Andreja Linux - Software 2 06-05-2004 10:53 AM
Unable to send or receive email dcroxton Linux - Networking 0 04-29-2004 07:33 AM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration