mail sent as local user

This is a discussion on mail sent as local user within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; Hello, I have a php based password request form that talks to mini_sendmail within a chroot(2) environment, which then ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2006
josh.moore.it@gmail.com
 
Posts: n/a
Default mail sent as local user

Hello,

I have a php based password request form that talks to mini_sendmail
within a chroot(2) environment, which then talks to qmail. When
requesting a password, the logged outgoing mail file is sent by
apache@hostname instead of admin@fqdn.com. Some email services block
this (rightly so), and some don't.. and when it is not blocked, the
mail is received FROM: admin@fqdn.com.. leading me to believe that the
php mail() call is formatted correctly with $header =.
the "me" file is set as fqdn, and there isn't a defaultdomain or
plusdomain file.

I am unsure how to resolve this issue. I'm not even sure if it's a
qmail problem or what.

Is it possible to use qmail-inject's environmental variables to fix
this?

Any help shedding light on the subject, or perhaps pointing me to a
more appropriate newsgroup, would be hugely apprecciated.

Reply With Quote
  #2 (permalink)  
Old 09-29-2006
AK
 
Posts: n/a
Default Re: mail sent as local user

josh.moore.it@gmail.com wrote:

> Hello,
>
> I have a php based password request form that talks to mini_sendmail
> within a chroot(2) environment, which then talks to qmail. When
> requesting a password, the logged outgoing mail file is sent by
> apache@hostname instead of admin@fqdn.com. Some email services block
> this (rightly so), and some don't.. and when it is not blocked, the
> mail is received FROM: admin@fqdn.com.. leading me to believe that the
> php mail() call is formatted correctly with $header =.
> the "me" file is set as fqdn, and there isn't a defaultdomain or
> plusdomain file.
>
> I am unsure how to resolve this issue. I'm not even sure if it's a
> qmail problem or what.
>
> Is it possible to use qmail-inject's environmental variables to fix
> this?
>
> Any help shedding light on the subject, or perhaps pointing me to a
> more appropriate newsgroup, would be hugely apprecciated.
>


When invoiking sendmail, make sure to set the -f flag.

AK
Reply With Quote
  #3 (permalink)  
Old 09-30-2006
josh.moore.it@gmail.com
 
Posts: n/a
Default Re: mail sent as local user

Hey,

in php.ini it was set as
sendmail_path = /bin/mini_sendmail -t

I set it to
sendmail_path = /bin/mini_sendmail -t -f

i am guessing though that this is now a mini_sendmail / php problem..

AK wrote:
> josh.moore.it@gmail.com wrote:
>
> > Hello,
> >
> > I have a php based password request form that talks to mini_sendmail
> > within a chroot(2) environment, which then talks to qmail. When
> > requesting a password, the logged outgoing mail file is sent by
> > apache@hostname instead of admin@fqdn.com. Some email services block
> > this (rightly so), and some don't.. and when it is not blocked, the
> > mail is received FROM: admin@fqdn.com.. leading me to believe that the
> > php mail() call is formatted correctly with $header =.
> > the "me" file is set as fqdn, and there isn't a defaultdomain or
> > plusdomain file.
> >
> > I am unsure how to resolve this issue. I'm not even sure if it's a
> > qmail problem or what.
> >
> > Is it possible to use qmail-inject's environmental variables to fix
> > this?
> >
> > Any help shedding light on the subject, or perhaps pointing me to a
> > more appropriate newsgroup, would be hugely apprecciated.
> >

>
> When invoiking sendmail, make sure to set the -f flag.
>
> AK


Reply With Quote
  #4 (permalink)  
Old 09-30-2006
josh.moore.it@gmail.com
 
Posts: n/a
Default Re: mail sent as local user

Hey,

in php.ini it was set as
sendmail_path = /bin/mini_sendmail -t

I set it to
sendmail_path = /bin/mini_sendmail -t -f

i am guessing though that this is now a mini_sendmail / php problem..

AK wrote:
> josh.moore.it@gmail.com wrote:
>
> > Hello,
> >
> > I have a php based password request form that talks to mini_sendmail
> > within a chroot(2) environment, which then talks to qmail. When
> > requesting a password, the logged outgoing mail file is sent by
> > apache@hostname instead of admin@fqdn.com. Some email services block
> > this (rightly so), and some don't.. and when it is not blocked, the
> > mail is received FROM: admin@fqdn.com.. leading me to believe that the
> > php mail() call is formatted correctly with $header =.
> > the "me" file is set as fqdn, and there isn't a defaultdomain or
> > plusdomain file.
> >
> > I am unsure how to resolve this issue. I'm not even sure if it's a
> > qmail problem or what.
> >
> > Is it possible to use qmail-inject's environmental variables to fix
> > this?
> >
> > Any help shedding light on the subject, or perhaps pointing me to a
> > more appropriate newsgroup, would be hugely apprecciated.
> >

>
> When invoiking sendmail, make sure to set the -f flag.
>
> AK


Reply With Quote
  #5 (permalink)  
Old 09-30-2006
josh.moore.it@gmail.com
 
Posts: n/a
Default Re: mail sent as local user


eh.. i meant, i set it to -t -f, and it stopped sending mail out
altogether.


josh.moore...@gmail.com wrote:
> Hey,
>
> in php.ini it was set as
> sendmail_path = /bin/mini_sendmail -t
>
> I set it to
> sendmail_path = /bin/mini_sendmail -t -f
>
> i am guessing though that this is now a mini_sendmail / php problem..
>
> AK wrote:
> > josh.moore.it@gmail.com wrote:
> >
> > > Hello,
> > >
> > > I have a php based password request form that talks to mini_sendmail
> > > within a chroot(2) environment, which then talks to qmail. When
> > > requesting a password, the logged outgoing mail file is sent by
> > > apache@hostname instead of admin@fqdn.com. Some email services block
> > > this (rightly so), and some don't.. and when it is not blocked, the
> > > mail is received FROM: admin@fqdn.com.. leading me to believe that the
> > > php mail() call is formatted correctly with $header =.
> > > the "me" file is set as fqdn, and there isn't a defaultdomain or
> > > plusdomain file.
> > >
> > > I am unsure how to resolve this issue. I'm not even sure if it's a
> > > qmail problem or what.
> > >
> > > Is it possible to use qmail-inject's environmental variables to fix
> > > this?
> > >
> > > Any help shedding light on the subject, or perhaps pointing me to a
> > > more appropriate newsgroup, would be hugely apprecciated.
> > >

> >
> > When invoiking sendmail, make sure to set the -f flag.
> >
> > AK


Reply With Quote
  #6 (permalink)  
Old 09-30-2006
AK
 
Posts: n/a
Default Re: mail sent as local user

josh.moore.it@gmail.com wrote:

> Hey,
>
> in php.ini it was set as
> sendmail_path = /bin/mini_sendmail -t
>
> I set it to
> sendmail_path = /bin/mini_sendmail -t -f
>
> i am guessing though that this is now a mini_sendmail / php problem..
>
> AK wrote:
>
>>josh.moore.it@gmail.com wrote:
>>
>>
>>>Hello,
>>>
>>>I have a php based password request form that talks to mini_sendmail
>>>within a chroot(2) environment, which then talks to qmail. When
>>>requesting a password, the logged outgoing mail file is sent by
>>>apache@hostname instead of admin@fqdn.com. Some email services block
>>>this (rightly so), and some don't.. and when it is not blocked, the
>>>mail is received FROM: admin@fqdn.com.. leading me to believe that the
>>>php mail() call is formatted correctly with $header =.
>>>the "me" file is set as fqdn, and there isn't a defaultdomain or
>>>plusdomain file.
>>>
>>>I am unsure how to resolve this issue. I'm not even sure if it's a
>>>qmail problem or what.
>>>
>>>Is it possible to use qmail-inject's environmental variables to fix
>>>this?
>>>
>>> Any help shedding light on the subject, or perhaps pointing me to a
>>>more appropriate newsgroup, would be hugely apprecciated.
>>>

>>
>>When invoiking sendmail, make sure to set the -f flag.
>>
>>AK

>
>


The -f flag requires an additional input, the sender's email address.

AK
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:19 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0