On Wed, Dec 31, 1969 at 11:59:59PM +0000, Benedict Verheyen wrote: | Hi, | | i've set up fetchmail, exim4, courier-imap and squirrelmail. I can | read my mail via the web by using a domain name that i registered | with ddts.net that points to my server at home. | But i cannot send mail from my webinterface. I tried to use the SMTP | method and the sendmail method.
| I can get the sendmail method working | by adding an alias for user www-data to the /etc/email-addresses file | but that makes the sendmail useless as other users cannot send mail | since the sent mail will all appear to be from me (i've added my real | email address after the www-data user). /etc/email-addresses is only intended for rewriting addresses of local users (formed by joining the username and hostname) to another address. | I see this in the email headers: Sender: www-data <[EMAIL PROTECTED]> | and (SquirrelMail authenticated user benedict) | So is there a method to let squirrelmail figure out that the | sender is actually [EMAIL PROTECTED] and not [EMAIL PROTECTED] The sender is actually 'www-data' because that is the user who invoked "sendmail". Exim (like postfix and sendmail) allows a different (envelope, not header) sender to be specified with the -f command line option. exim, however, doesn't allow unprivileged users to do this. (think of a scenario where a malicious user on your system decides to abuse it to spam or harass someone; you want to be able to track that) You can set the www-data to be privileged, as far as exim is concerned, in your exim.conf. Then be sure that squirrelmail uses the '-f' parameter to specify the desired sender address. | When i try the smtp method i get this as error message: | | 2003-10-09 14:27:33 rejected EHLO from arthur.camelot [192.168.0.1]: | syntactically invalid argument(s): <domainname>.ddts.net:<apacheport> ^^^^^^^^^^^^^ The port number is not part of a host name and is thus syntactically illegal as the HELO argument. This, clearly, must be a bug in squirrelmail (possibly relating to your configuration). However, you can adjust exim's configuration wrt how strictly it will check things like that. -D -- If Microsoft would build a car... ... Occasionally your car would die on the freeway for no reason. You would have to pull over to the side of the road, close all of the car windows, shut it off, restart it, and reopen the windows before you could continue. For some reason you would simply accept this. http://dman13.dyndns.org/~dman/
pgp00000.pgp
Description: PGP signature