[xmail] Re: SMTP External Authentication
Well, the problem is, my script only works as root as normal users can't access the shadow file or the useredit program. I wanted to do it in reverse, when xmail's userpasswd command is called, it changes the system password. I think I will just disallow users to change their own password altogether, until I think of another solution. Dustin C. Hatch http://www.dchweb.com Davide Libenzi wrote: >On Fri, 19 Nov 2004, Dustin C. Hatch wrote: > > > >>I have one quick question, and then I think I have got it. When is the >>useredit called from $XMAIL_ROOT/userauth/pop3/domain.tab? What I am >>planning is to write a script that takes the place of the passwd program >>that calls CtrlClnt to change the password in xmail, which calls said >>file and also changes the system password. What I need to know is what >>invokes the useredit command in that file. Will CtrlClnt -s server -u >>user -p password userpass domain username password call it? If so, I >>think I have figured out this whole external auth thing! >> >> > >Forget about useredit and the stuff inside userauth/. Just hook to your >password change setup, a script that uses the CTRL interface to issue a >"userpasswd" command. > > > >- Davide > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] > > > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
On Fri, 19 Nov 2004, Dustin C. Hatch wrote: > I have one quick question, and then I think I have got it. When is the > useredit called from $XMAIL_ROOT/userauth/pop3/domain.tab? What I am > planning is to write a script that takes the place of the passwd program > that calls CtrlClnt to change the password in xmail, which calls said > file and also changes the system password. What I need to know is what > invokes the useredit command in that file. Will CtrlClnt -s server -u > user -p password userpass domain username password call it? If so, I > think I have figured out this whole external auth thing! Forget about useredit and the stuff inside userauth/. Just hook to your password change setup, a script that uses the CTRL interface to issue a "userpasswd" command. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
I have one quick question, and then I think I have got it. When is the useredit called from $XMAIL_ROOT/userauth/pop3/domain.tab? What I am planning is to write a script that takes the place of the passwd program that calls CtrlClnt to change the password in xmail, which calls said file and also changes the system password. What I need to know is what invokes the useredit command in that file. Will CtrlClnt -s server -u user -p password userpass domain username password call it? If so, I think I have figured out this whole external auth thing! Thanks for all your help, Dustin C. Hatch Dustin C. Hatch wrote: >I guess I never thought of that. That would work great. The only >problem is getting the password to two places. I would have to look >into the crypt() function, which would mean I need to brush up on my C >:D Thanks Davide. >Dustin C. Hatch > >Davide Libenzi wrote: > > > >>On Wed, 17 Nov 2004, Dustin C. Hatch wrote: >> >> >> >> >> >>>I looked further into the docs on SMTP authentication, and they were no >>>help. All I got out of that was external as in another mail server. My >>>question still remains: why does external POP3 authentication not take >>>place when sending emails? It works just fine otherwise, downloading >>>messages from the server, but when I try to send a message, then I have >>>to use the password in the mailusers.tab file, which defeats the purpose >>>of having external authentication in the first place. What am I doing wrong? >>> >>> >>> >>> >>In general, even if XMail support some form of external auth, if it easier >>and more efficent to have the main account repository to trigger a smal >>script using CTRL interface to change the XMail password. This prevent >>XMail to run external commands during each session. >> >> >>- Davide >> >>- >>To unsubscribe from this list: send the line "unsubscribe xmail" in >>the body of a message to [EMAIL PROTECTED] >>For general help: send the line "help" in the body of a message to >>[EMAIL PROTECTED] >> >> >> >> >> >> > > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] > > > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
I guess I never thought of that. That would work great. The only problem is getting the password to two places. I would have to look into the crypt() function, which would mean I need to brush up on my C :D Thanks Davide. Dustin C. Hatch Davide Libenzi wrote: >On Wed, 17 Nov 2004, Dustin C. Hatch wrote: > > > >>I looked further into the docs on SMTP authentication, and they were no >>help. All I got out of that was external as in another mail server. My >>question still remains: why does external POP3 authentication not take >>place when sending emails? It works just fine otherwise, downloading >>messages from the server, but when I try to send a message, then I have >>to use the password in the mailusers.tab file, which defeats the purpose >>of having external authentication in the first place. What am I doing wrong? >> >> > >In general, even if XMail support some form of external auth, if it easier >and more efficent to have the main account repository to trigger a smal >script using CTRL interface to change the XMail password. This prevent >XMail to run external commands during each session. > > >- Davide > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] > > > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
On Wed, 17 Nov 2004, Dustin C. Hatch wrote: > I looked further into the docs on SMTP authentication, and they were no > help. All I got out of that was external as in another mail server. My > question still remains: why does external POP3 authentication not take > place when sending emails? It works just fine otherwise, downloading > messages from the server, but when I try to send a message, then I have > to use the password in the mailusers.tab file, which defeats the purpose > of having external authentication in the first place. What am I doing wrong? In general, even if XMail support some form of external auth, if it easier and more efficent to have the main account repository to trigger a smal script using CTRL interface to change the XMail password. This prevent XMail to run external commands during each session. - Davide - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
Thunderbird is my MUA of choice, and I am not sure what it does to authenticate me, but it prompts for a password. Also, I have null webmail, and it does work. I am going to install ethereal on this box and watch as I try to send mail, to see how it connects to the server for authentication Charles Frolick wrote: >Hello Dustin, > >Wednesday, November 17, 2004, 6:32:54 AM, you wrote: > >DCH> I looked further into the docs on SMTP authentication, and they were no >DCH> help. All I got out of that was external as in another mail server. My >DCH> question still remains: why does external POP3 authentication not take >DCH> place when sending emails? It works just fine otherwise, downloading >DCH> messages from the server, but when I try to send a message, then I have >DCH> to use the password in the mailusers.tab file, which defeats the purpose >DCH> of having external authentication in the first place. What am I doing >wrong? > >IT sounds like you are composing then immediately sending, in which >case many MUA's do not POP3 check first, the only option is to let it >stay in the outbox until a full send and recieve, or find a client >that has a setting for POP before SMTP auth for immediate send. I know >The Bat! can do it (http://www.ritlabs.com). > > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
Hello Dustin, Wednesday, November 17, 2004, 6:32:54 AM, you wrote: DCH> I looked further into the docs on SMTP authentication, and they were no DCH> help. All I got out of that was external as in another mail server. My DCH> question still remains: why does external POP3 authentication not take DCH> place when sending emails? It works just fine otherwise, downloading DCH> messages from the server, but when I try to send a message, then I have DCH> to use the password in the mailusers.tab file, which defeats the purpose DCH> of having external authentication in the first place. What am I doing wrong? IT sounds like you are composing then immediately sending, in which case many MUA's do not POP3 check first, the only option is to let it stay in the outbox until a full send and recieve, or find a client that has a setting for POP before SMTP auth for immediate send. I know The Bat! can do it (http://www.ritlabs.com). -- Best regards, Charlesmailto:[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
Um, perhaps I'm missing something obvious here, but... POP3 is not involved in the sending of messages, hence there is no reason for POP3 authentication to be used when sending messages. If you want to use external authentication for sending messages then you need to set up SMTP authentication. Since you seem to be wanting the same form of external authentication for sending, you should be able to use or adapt the same code for SMTP authentication that you are currently using for POP3 authentication. Check the Xmail documentation for information on how to set up external SMTP authentication. It's in there - I wrote a module to do NT-domain based authentication for SMTP a while back. At 07:32 11/17/2004, Dustin C. Hatch wrote: >I looked further into the docs on SMTP authentication, and they were no >help. All I got out of that was external as in another mail server. My >question still remains: why does external POP3 authentication not take >place when sending emails? It works just fine otherwise, downloading >messages from the server, but when I try to send a message, then I have >to use the password in the mailusers.tab file, which defeats the purpose >of having external authentication in the first place. What am I doing wrong? > >Dustin C. Hatch wrote: > > >I got my external POP3 authentication via PAM, and can check and receive > >messages correctly through it, however, do I need to set up a similar > >authentication process for SMTP? Currently, it appears as though xmail > >is authenticating users with the internal username and password. I > >thought authentication was done with POP3-before-SMTP? Am I wrong, does > >SMTP have its own authentication? If so, do I need to make an entry in > >/etc/xmail/userauth/smtp/dchweb.com.tab using the info in the docs? I > >am so confused :P > > > >Thanks > >Dustin C. Hatch > > > > > > > >- > >To unsubscribe from this list: send the line "unsubscribe xmail" in > >the body of a message to [EMAIL PROTECTED] > >For general help: send the line "help" in the body of a message to > >[EMAIL PROTECTED] > > > > > > > > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]
[xmail] Re: SMTP External Authentication
I looked further into the docs on SMTP authentication, and they were no help. All I got out of that was external as in another mail server. My question still remains: why does external POP3 authentication not take place when sending emails? It works just fine otherwise, downloading messages from the server, but when I try to send a message, then I have to use the password in the mailusers.tab file, which defeats the purpose of having external authentication in the first place. What am I doing wrong? Dustin C. Hatch wrote: >I got my external POP3 authentication via PAM, and can check and receive >messages correctly through it, however, do I need to set up a similar >authentication process for SMTP? Currently, it appears as though xmail >is authenticating users with the internal username and password. I >thought authentication was done with POP3-before-SMTP? Am I wrong, does >SMTP have its own authentication? If so, do I need to make an entry in >/etc/xmail/userauth/smtp/dchweb.com.tab using the info in the docs? I >am so confused :P > >Thanks >Dustin C. Hatch > > > >- >To unsubscribe from this list: send the line "unsubscribe xmail" in >the body of a message to [EMAIL PROTECTED] >For general help: send the line "help" in the body of a message to >[EMAIL PROTECTED] > > > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]