RE: [Exim] Problems with -f flag

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Matthew Lewis
Date:  
À: exim-users
Sujet: RE: [Exim] Problems with -f flag
Thanks for your reply Eli.

In answer to your first question, this script is part of a webmail
program we're using. Messages are being sent just fine, but when they
bounce, they come in to my default e-mail account instead of going back
to the proper webmail user. According to the script programmers, the -f
flag functioning properly would fix this behavior.

I checked with my host and they do use suexec. The script is running as
my system account, so it should be running as a "trusted user."

Because of the context of the script in question, I don't know if I can
run it via the command line. But, I'll check with the programmers and
see.

If anyone has any further ideas on how I can get the -f[email] flag to
operate properly, I'd appreciate it!

Thanks again,

Matthew

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On
Behalf Of Eli
Sent: Friday, January 09, 2004 10:59 AM
To: matthew@???; exim-users@???
Subject: RE: [Exim] Problems with -f flag


How is it not working for you? Does it return an error and not send any
email, or does it send an email but just not formatted the way you want?

I run several systems (although not with cpanel) that has users that use
exim as if it were sendmail - none have had any issues with getting it
to work, except with the default exim.conf file it will insert Sender:
headers (so I disabled that).

Do you have shell access at all - if so, what happens when you run the
command via the command line? Also, what system user does the Perl
script run as on the server (do they use suexec or not)? It might be
that the script isn't running as your system account, thus has no access
to use the -f flag?

Eli.

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On
Behalf Of Matthew Lewis
Sent: Friday, January 09, 2004 3:39 PM
To: exim-users@???
Subject: [Exim] Problems with -f flag


This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hello everyone,

I'm on a cpanel server, shared hosting, using Exim for the MTA. I have a
PERL script that needs to use the -f[email] flag, but for some reason
that flag isn't working properly with the script. The same script is
functioning on other servers using Sendmail and QMail, but so far I
can't get it to work on our server which as I said is running Exim.

I checked with my host to make sure the script was running as a "Trusted
User" and thus had access to the -f flag. Tech support at my host
verified that we should have access to it, but it's still not working.
Our host is very reluctant to make changes to their Exim configuration,
but they might if I can bring solid details about what needs to be done.

Does anyone have any suggestions on how to allow a PERL script to access
the -f[email] flag? In case it's important, I've included the portion of
the script that's trying to use the flag (look toward the middle of the
code snippet).

Thanks in advance for any ideas,

Matthew

####################

sub send {
my $self = shift;
my $command = $self->{_Sendmail};
if ($self->{_Sendmail} =~ /sendmail/) {
$self->{_From} =~ /([\w-]+\@[\w.-]+)/;
my $email = $1;
if ($self->{_UseCache}) {
$command .= " -odq";
}
if ($email) {
$command .= " -f $email";
}
}
# print "Content-Type: Text/Html\n\n";
# print "COMMAND: $command<P>\n";
open (MAIL, "| $command") || return undef;
print MAIL $self->_generate;
close (MAIL);

return 1;
}

####################


--



--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##

---
[This E-mail scanned for viruses]


---
[This E-mail scanned for viruses]


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##