Help - Search - Members - Calendar
Full Version: webmail sending error
The Planet Forums > Control Panels > Plesk
BioChemDork
just a general note to nobody in particular:

if you start getting complaints that the webmail won't let you send mail (no error message - the message just kinda vanishes into the electronic ether), here's the solution:

1) add 127.0.0.1/24 to your email relaing whitelist in webpanel
2) go into your machine, and edit the php.ini file. Change file uploads to ON, and the max uploads to 0K (zero K).

please note that this has security implications. i can imagine somebody spoofing spam as coming from 127.0.0.1 - not sure if this is actually feasable. also, turning file uploading on creates security holes, but i'm hoping that the 0K max size minimizes the problem. as always, you're trading security for functionality.
Berlin
Ok for some reason 127.0.0.1/32 works for me. I shouldn't even have to worry about this that's why I got Plesk.

But here's another problem. I can now send emails (using my Hivemail script) but only if it's empty or if the message is in a form of an attachment. Here's my maillog:

Mar 12 00:06:53 plesk pop3d: Connection, ip=[207.44.226.30]
Mar 12 00:06:53 plesk pop3d: LOGIN, user=postmaster, ip=[207.44.226.30]
Mar 12 00:06:53 plesk pop3d: LOGOUT, user=postmaster, ip=[207.44.226.30], top=0, retr=0
Mar 12 00:07:00 plesk pop3d: Connection, ip=[207.44.226.30]
Mar 12 00:07:00 plesk pop3d: LOGIN, user=postmaster, ip=[207.44.226.30]
Mar 12 00:07:00 plesk pop3d: LOGOUT, user=postmaster, ip=[207.44.226.30], top=0, retr=0

Nothing leaves the server.
I'm on Plesk 5.0.5 Rpm install also.
NightHawk
QUOTE
Originally posted by Berlin
Ok for some reason 127.0.0.1/32 works for me. I shouldn't even have to worry about this that's why I got Plesk.

But here's another problem. I can now send emails but only if it's empty or if the message is in a form of an attachment. Here's my maillog:

Mar 12 00:06:53 plesk pop3d: Connection, ip=[207.44.226.30]
Mar 12 00:06:53 plesk pop3d: LOGIN, user=postmaster, ip=[207.44.226.30]
Mar 12 00:06:53 plesk pop3d: LOGOUT, user=postmaster, ip=[207.44.226.30], top=0, retr=0
Mar 12 00:07:00 plesk pop3d: Connection, ip=[207.44.226.30]
Mar 12 00:07:00 plesk pop3d: LOGIN, user=postmaster, ip=[207.44.226.30]
Mar 12 00:07:00 plesk pop3d: LOGOUT, user=postmaster, ip=[207.44.226.30], top=0, retr=0

Nothing leaves the server.
I'm on Plesk 5.0.5 Rpm install also.



ok, the above maillog snipit shows nothing about email sending....but let me take a stab at this anyway...

1) check your php.ini...make sure all 3 of these settings are something acceptable for you (adjust to your own needs)
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 100K

2) make sure this has been done:
##verify php version
rpm -qa | grep php
##should be at least php-4.1.2-7.3.6
##if not...upgrade php
##change 2 lines in 2 files##
vi /home/httpd/vhosts/webmail/horde/imp/config/servers.php
##change#'protocol' => 'imap',
'protocol' => 'imap/notls',
thats another way to fix it.
vi /home/httpd/vhosts/webmail/horde/config/horde.php
##change#$conf['auth']['driver'] = ''
$conf['auth']['params']['dsn'] = '{localhost:143/notls}INBOX';

##restart psa
/etc/rc.d/init.d/psa restart
##restart apache
/etc/rc.d/init.d/httpd restart

If those don't fix it...post a few more details...and I will see if I can figure out what you have wrong.
Berlin
Btw, I'm not using Horde. I'm using hivemail, but it works on my old server. it uses smtp.

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

and i have php-4.1.2-7.3.6




Tried this also:

print_r($_smtp_connection->errors);

Nothing showed up.
NightHawk
QUOTE
Originally posted by Berlin
Btw, I'm not using Horde. I'm using hivemail, but it works on my old server. it uses smtp.  

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

and i have php-4.1.2-7.3.6




Tried this also:

print_r($_smtp_connection->errors);

Nothing showed up.


I believe you have another thread on this hivemail thing...and I do not know hivemail at all..but if it uses smtp, then you have to at the very least whitelist localhost...unless it is capable of pop authtenication or smtp authentication.

Other then that...my only recommendation would be to ensure that it is compatible with qmail as plesk doesn't run sendmail.
Berlin
it works with smtp but only if the email is empty.

vbulletin and other scripts using mail() is a separate issue.

I might have to go with RS suggestion as to restore my server. Maybe a standard restoration will fix everything.
NightHawk
QUOTE
Originally posted by Berlin
it works with smtp but only if the email is empty.  

vbulletin and other scripts using mail() is a separate issue.  

I might have to go with RS suggestion as to restore my server. Maybe a standard restoration will fix everything.


it is also possible the problem is in the interaction of your webmail script with plesk. Have you checked with the creators of your hivemail to see if it is at compatible with a plesk server running qmail?
Berlin
Plesk is supposed to work even with Vbulletin, period.
NightHawk
QUOTE
Originally posted by Berlin
Plesk is supposed to work even with Vbulletin, period.


plesk will work with vbulletion...

but remember plesk runs qmail..and some scripts do not work with qmail as they are wrote for sendmail or exim..for example.

I do not know if the script you are trying to use will work with qmail or plesk...but it is worth looking into.

Also, plesk comes with it's own webmail...so when you are trying to use a different one..you are trying to get plesk to do something it wasn't designed for...this may or may not cuase issues. For one thing...plesk stores it's mailboxes and other items in spots that are not exactly standard...this may stop a 3rd party webmail script from working...

I would suggest contacting the writers of your webmail script and or searching the plesk forums to see if anyone else has it working...

anyway..just my .02 cents.
Berlin
QUOTE
Originally posted by NightHawk
plesk will work with vbulletion...


how?

but thanks for all your help Nighthawk.
NightHawk
QUOTE
Originally posted by Berlin
how?

but thanks for all your help Nighthawk.


vbb works on plesk...there are a few threads in the plesk forum on that I believe....

I don't run it...but I do believe you either have to disable safe_mode for that site...or there is a hack at the vbb site that will allow it to run in safe_mode (yes...I know it works..becuase I had a hosting customer or two running it...with safe_mode on).
Rich2k
I've run it on plesk, no probs. In fact I've run two of them.
Berlin
Here is RS solution: (it works!)


[root@plesk mailnames]# grep qmail-inject /etc/php.ini
sendmail_path = /var/qmail/bin/qmail-inject

For systems with qmail you need to use "qmail-inject" instead of
"sendmail".

RS Tech


NightHawk:

If you had to do that..then your symlinks for sendmail were not working properly...but anyway..glad it works for you now...



I don't know why it wasn't working to begin with. I hope I don't find other problems with my qmail setup. This is a new server, btw.
skylap.com
I've also had problems like this. Any other suggestions?

Mark
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.