On Sunday 29 September 2002 22:55, Sven Guckes wrote: > * Oliver Kullmann <[EMAIL PROTECTED]> [2002-09-28 20:04]: > > I want to send e-mail via a cgi-script (I'm using Apache), using > > mutt in batch mode. Now it seems impossible, since the script is > > run as user wwwrun, and mutt doesn't want to know anything about > > this poor guy --- simply refuses any friendly contact! > > "refuses" means "error message". so what are these? tell us! >
More precisley, a command like wwwrun> echo "Test 28.9.2002, mutt" | mutt [EMAIL PROTECTED] doesn't do *anything* (literally: no error messages, return code is 0, and nobody gets any mail); As you can see, the user is wwwrun, and that seems to be the problem. *Of course*, I tried all sort of variations, providing wwwrun with configuration files like the one that work for me, the result is always the same: *nothing* (again, *literally* nothing). BTW, mutt is found: wwwrun> mutt -v Mutt 1.3.27i (2002-01-22) Copyright (C) 1996-2001 Michael R. Elkins und andere. Mutt übernimmt KEINERLEI GEWÄHRLEISTUNG. Starten Sie `mutt -vv', um weitere Details darüber zu erfahren. Mutt ist freie Software. Sie können es unter bestimmten Bedingungen weitergeben; starten Sie `mutt -vv' für weitere Details. System: Linux 2.4.18-4GB (i686) [using ncurses 5.2] Einstellungen bei der Compilierung: -DOMAIN -DEBUG -HOMESPOOL -USE_SETGID +USE_DOTLOCK -DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP -USE_GSS +USE_SSL +USE_SASL +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM +HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT +ENABLE_NLS -LOCALES_HACK +COMPRESSED +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR +HAVE_ICONV -ICONV_NONTRANS +HAVE_GETSID +HAVE_GETADDRINFO ISPELL="/usr/bin/ispell" SENDMAIL="/usr/sbin/sendmail" MAILPATH="/var/mail" PKGDATADIR="/usr/share/mutt" SYSCONFDIR="/etc" EXECSHELL="/bin/sh" -MIXMASTER Um die Entwickler zu kontaktieren, schicken Sie bitte eine Nachricht (in englisch) an <[EMAIL PROTECTED]>. Um einen Bug zu melden, verwenden Sie bitte das Programm flea(1). patch-1.3.27.rr.compressed.1 Meanwhile I found a work-around: It seems that starting processes as user wwwrun from a cgi-script under Apache (using also suEXEC, but that doesn't seem to be the problem) in general is very problematic, to say the least. So I send now e-mails from my cgi-scripts as follows: The cgi-script puts a "command" for the e-mail into a file, and every, say, 30 minutes a cron job (now run under my identity, not as wwwrun) picks up that file, and sends off the e-mail. It works fine, and that attempt can be used also for other problems with cgi-scripts. Thanks for your support! Oliver