Grokbase
x

Ask Bjørn Hansen (a...@develooper.com)

Profile | Posts (538)Page 1 of 27: 1 2 3 > >>
1) Ask Bjørn Hansen Re: qpsmtpd with TLS and AUTH
| +1 vote
Tak Rasmus! Could you make the diff with "diff -u"? - ask
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Tak Rasmus!

Could you make the diff with "diff -u"?


   - ask

--  
http://localrobot.com/

On Feb 18, 2010, at 14:18, Rasmus Skaarup <rasmus@gal.dk> wrote:

>
> Patch is attached. User can now choose between cram-md5 and plain
> authentication. If no option is chosen, it defaults to cram-md5 -
> which is backwards compatible.
>
> Br
> Rasmus Skaarup
>
> <auth_flat_file.patch>
>
>
>
> On 18/02/2010, at 22.45, Rasmus Skaarup wrote:
>
>>
>> Gmail apparently only supports AUTH PLAIN.
>>
>> But why their mail servers responds with "AUTH CRAM-MD5" and
>> proceeds with a plain mechanism is not really playing nice.
>>
>> I added support for the plain mechanism in the auth_flat_file
>> plugin (which was rather easy - why isn't this a selectable
>> feature? Should I post a patch?) so my mail server now tells "AUTH
>> CRAM-MD5 PLAIN" and Gmail now chooses "AUTH PLAIN" and
>> authentication succeeds.
>>
>> Br
>> Rasmus
>>
>>
>> On 16/02/2010, at 18.33, Baltasar Cevc wrote:
>>
>>> Hi Rasmus,
>>>
>>>> ...
>>>> @400000004b7ac0e606cba59c 44729 running plugin (auth-cram-md5):
>>>> auth::auth_flat_file
>>>> @400000004b7ac0e606cd9d84 44729 auth::auth_flat_file plugin:
>>>> Authentication for: <secretuser@secretdomain.invalid>
>>>> @400000004b7ac0e606cfeb5c 44729 trying to get config for
>>>> flat_auth_pw
>>>> @400000004b7ac0e606d51b7c 44729 auth::auth_flat_file plugin:
>>>> passClear NOT defined
>>>> @400000004b7ac0e606d80594 44729 auth::auth_flat_file plugin:
>>>> passHash defined: 5a8cf0b98d4e09d155f6cd64f5b708fb - <87e78.4b7ac0dc@denene.dvconsulting.dk
>>>> > - 7a66033f5c7208945ad2c36b9e92100c
>>>> @400000004b7ac0e606db265c 44729 Plugin auth::auth_flat_file, hook
>>>> auth-cram-md5 returned DENY, authflat/cram-md5 - wrong password
>>>> @400000004b7ac0e606de04bc 44729 535 Authentication failed for [email protected: m...@dvconsulting.dk]
>>>>  - authflat/cram-md5 - wrong password
>>>> @400000004b7ac0e606e196cc 44729 Authentication failed for [email protected: m...@dvconsulting.dk]
>>>>  - authflat/cram-md5 - wrong password
>>> ...
>>> I don't use the auth plugins myself, but maybe this general
>>> information will help you as I've noticed the corresponding error
>>> in your trace:
>>> If you want to use the MD5-mechanisms, you need a clear-text
>>> password. Only plain and login will function with a password hash.
>>> Be sure that your server only announces mechanims that are
>>> supported for all users - the announcement takes place before the
>>> user is known, thus if you have one single user without a
>>> plaintext password, it would be unable to login otherwise (the
>>> client would probably try CRAM-MD5 and then - by definition - fail
>>> to authenticate).
>>>
>>> Cheers,
>>> Baltasar
>>>
>>> ((( Baltasar Cevc
>>>
>>>
>>> ) World wide web:
>>> # http://www.openairkino.net/ (a project for the local youth;
>>> German only)
>>> # http://technik.juz-kirchheim.de/ (programming and admin projects)
>>> # http://baltasar.cevc-topp.de/ (private homepage)
>>> ) Phone:
>>> +49 178 691 22 33
>>> )
>>>
>>>
>>>
>>>
>>>
>>
>
2) Ask Bjørn Hansen Re: Switching to qpsmtpd, a few questions
| +1 vote
Oh - your performance with qpsmtpd will certainly be better than what you have now then! ... and...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Feb 17, 2010, at 8:28, Jost Krieger wrote:

>> If you do spamassassin and such, that will be the resource intensive
>> part. qpsmtpd might help over other MTAs though in filtering more of
>> the mail in cheaper ways first.
>
> Yes, we do. But that's already perl right now. The hardest thing is
> qmail-scanner as a qmail-queue wrapper. This forks a perl for every
> message that gets so far.

Oh - your performance with qpsmtpd will certainly be better than what you have now then!

> In fact, some of the policy filtering is hidden in the greylisting
> daemon, because there it's perl and doesn't fork.

... and the code cleaner.  :-)

>>> 4. Is this the right place for bug reports about included plugins?
>>
>> Yup! Best form of bug reports are fixes in your github repository though. We also have a little-used bug tracker at http://code.google.com/p/smtpd/issues/list
>
> I've got to understand things a bit more before that ...


Obviously. :-) I'm just pointing it out because for many users qpsmtpd is more of a development platform than an application; so if you are going to do work based on it then you'll be better off starting with a git clone than a tar ball.


  - ask

--
http://develooper.com/ - http://askask.com/
3) Ask Bjørn Hansen Re: Switching to qpsmtpd, a few questions
| +1 vote
If you don't do any heavy processing (spamassassin or virus scanning basically) then ~20/second (or...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Feb 17, 2010, at 3:41, Jost Krieger wrote:

> 1. How many SMTP sessions can be expected on commodity hardware under
>   Linux (RedHat), with prefork? 

If you don't do any heavy processing (spamassassin or virus scanning basically) then ~20/second (or whatever a million day works out to when your server is busiest) shouldn't be a problem.

If you do spamassassin and such, that will be the resource intensive part. qpsmtpd might help over other MTAs though in filtering more of the mail in cheaper ways first.

> 2. How fast is this (I've read Chris Lewis saying 300 sessions/sec)?

That doesn't sound unreasonable, but as soon as you add the spam filtering it goes down -- imagine even just 5 DNS lookups for blacklists and such and now you're also doing 1500 DNS lookups a second.

[...]
> 4. Is this the right place for bug reports about included plugins?

Yup! Best form of bug reports are fixes in your github repository though. We also have a little-used bug tracker at http://code.google.com/p/smtpd/issues/list


  - ask
4) Ask Bjørn Hansen Re: Patching require_resolvable_fromhost
| +1 vote
suggested, Thank you for making a git repository with the change; I pulled it into = my branch. -...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Feb 6, 2010, at 12:41, Larry Nedry wrote:

> Here's my patch for require_resolvable_fromhost. As Chris Lewis =
suggested,
> delaying rejection until the RCPT TO hook solved the problem.


Thank you for making a git repository with the change; I pulled it into =
my branch.


- ask=
5) Ask Bjørn Hansen Re: Correct way to fix bugs
| +1 vote
Hi Peter! You did the right thing; except it's better to send patches to the list than pull...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jan 18, 2010, at 8:32, Peter J. Holzer wrote:

> In mid-November I found a bug in Qpsmtpd::config. I created issue 29 on
> Google Code (http://code.google.com/p/smtpd/issues/detail?id=29) and
> some time later checked a fix into my github repository and

Hi Peter!

You did the right thing; except it's better to send patches to the list than pull requests. (So have it in github, but also send the patches to the list for review).

It's basically just:

git format-patch HEAD^.. # or HEAD~5..HEAD~3 or whatever you need to specify the patch series
git send-email 000*

I think my concern with your change was if it was the right thing to do for configuration plugins (as you noted in a comment in your code, too).


- ask

--
http://develooper.com/ - http://askask.com/
6) Ask Bjørn Hansen Re: make test
| +1 vote
I run this an Yeah - the test passes so all is well. I think it's just a test that = checks that...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Dec 28, 2009, at 13:21, Larry Nedry wrote:

> I'm installing qpsmtpd 0.83 on a new server running CentOS 5.4. When =
I run
> make test I get an unexpected message, "command not performed". Is =
this an
> issue that I need to resolve?

Yeah - the test passes so all is well.  I think it's just a test that =
checks that something's not supposed to work (and it doesn't).


- ask=
7) Ask Bjørn Hansen Re: Trying apache with multiple configs.
| +1 vote
I think you could make config_dir method in Apache::Qpsmtpd that'll return a directory name if the...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Dec 8, 2009, at 6:27, Peter Eisch wrote:

>> SetEnv QPSMTPD_CONFIG "/home/smtpd/qpsmtpd.2/config"
>> </VirtualHost>
>>
>
> That doesn't appear to set the value where it can be picked up:
>
> ... $ENV{QPSMTPD_CONFIG} must be given at
> /home/smtpd/qpsmtpd.vsi/lib/Apache/Qpsmtpd.pm line 26.\n
>
> The PerlSetVar's work between the instances. This fix could be to override
> Qpsmtpd::config_dir in Qpsmtpd::Apache and have it use a PerlSetVar value.
> I'm not sure how Qpsmtpd::Apache->config() gets called or this would be
> somewhat trivial.

I think you could make config_dir method in Apache::Qpsmtpd that'll return a directory name if the appropriate PerlSetVar is specified (and fall back to $self->SUPER::config_dir(@_) if not).


- ask=
8) Ask Bjørn Hansen Re: AUTH PLAIN bug with qpsmtpd and alpine [SOLUTION]
| +1 vote
Hi Rick! I'm pretty sure Charlie wasn't just being stubborn but rather just = trying to figure out...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 29, 2009, at 16:25, Rick wrote:

Hi Rick!

I'm pretty sure Charlie wasn't just being stubborn but rather just =
trying to figure out what the behavior really should be so we don't =
change it to work compatibility with alpine just to break it with =
something else.

It's entirely possible that the code in question is wrong; I'm guessing =
Charlie was just surprised (as I was) because it's 5 years old and is =
used by many without these problems.


- ask=
9) Ask Bjørn Hansen Re: AnyEvent mode?
| +1 vote
Either make a github account, clone my repository and then: git clone...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 23, 2009, at 14:52, Matt Sergeant wrote:

>> There are also more "other stuff" available with AnyEvent -- I think it'd be cool!
>
> OK. How do I get this to you? It's basically just two new files, no patches to anything.


Either make a github account, clone my repository and then:

git clone git@github.com:msergeant/qpsmtpd.git
git add new.file another-file.pl
git commit
git push origin

... and then anyone can work with it from your repository. This is how most patches are processed now.

or:

git clone git://github.com/abh/qpsmtpd.git
git add new.file another-file.pl
git commit
git format-patch HEAD^..
git send-email --to=qpsmtpd@perl.org 0001*

to manage the changes in git and use git to send them to the list.

... or of course you could just send them to the list or to me or put them on http somewhere and send a link -- but since you asked. :-)


- ask

--
http://develooper.com/ - http://askask.com/
10) Ask Bjørn Hansen Re: AnyEvent mode?
| +1 vote
I'm not exactly sure what your question is, but http://search.cpan.org/search?query=anyevent shows...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 23, 2009, at 12:08, Guy Hulbert wrote:

> google: perl anyevent
>
> yields: http://search.cpan.org/dist/AnyEvent/
>
> is there a better starting point ?

I'm not exactly sure what your question is, but

http://search.cpan.org/search?query=anyevent

shows a sample of available event implementations and other modules.


- ask
11) Ask Bjørn Hansen Re: AnyEvent mode?
| +1 vote
There are also more "other stuff" available with AnyEvent -- I think it'd be cool! - ask=
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 23, 2009, at 11:41, Matt Sergeant wrote:

> Is anyone interested in an AnyEvent mode Qpsmtpd? I have the code written (mostly hacked right now, but should work).
>
> In theory it might be faster than the Danga::Socket based one, and AnyEvent seems to receive regular updates more than Danga::Socket these days.

There are also more "other stuff" available with AnyEvent -- I think it'd be cool!


- ask=
12) Ask Bjørn Hansen Re: Move clamav headers at top
| +1 vote
Sounds good to me. Would that mess up anything else?
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 5, 2009, at 10:31, Shad L. Lords wrote:

> This might not be the best place to fix this. The correct way would
> be to fix header->add to always stick the headers at the top.

Sounds good to me.  Would that mess up anything else?
13) Ask Bjørn Hansen Re: plugins/virus/clamav typo
| +1 vote
While Robert is right that this is much easier to work with as a proper patch; this one was easy...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Nov 4, 2009, at 7:19, Filippo Carletti wrote:

> - $self->{_clamd_conf} ||= '/etc/clamd/conf'; # make sure something
> is set
> + $self->{_clamd_conf} ||= '/etc/clamd.conf'; # make sure something
> is set

While Robert is right that this is much easier to work with as a  
proper patch; this one was easy enough that after staring at it for  
long enough to see the typo I applied it; thanks!


  - ask
14) Ask Bjørn Hansen Re: Getting error while using qmail-queue plugin
| +1 vote
Try using the 'swaks' tool to test email instead: http://jetmore.org/john/code/#swaks...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Oct 17, 2009, at 13:01, viggy_prabhu wrote:

> When I try to send a mail through telnet, I am getting the following
> error,
> "FATAL PLUGIN ERROR [queue::qmail_2dqueue]: Can't call method "print"
> on an undefined value at ./plugins/queue/qmail-queue line 60, <STDIN>
> line 6."

Try using the 'swaks' tool to test email instead: http://jetmore.org/john/code/#swaks
http://jetmore.org/john/code/swaks

(Although we should fail more gracefully when you give it an invalid  
email message...)


  - ask

--
http://develooper.com/ - http://askask.com/
15) Ask Bjørn Hansen Re: PATCH: Update contact details
| +1 vote
Yeah; the link is more helpful (ask@develooper.com gets an insane amount of spam; it surprises me...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Oct 16, 2009, at 14:25, Steve Kemp wrote:

> Maybe ask doesn't get much SPAM thanks to qpsmtpd, but
> it might make sense ask people to send mail to this list:

Yeah; the link is more helpful ([email protected: a...@develooper.com] gets an insane
amount of spam; it surprises me that email is still functional at all).


  - ask

--
http://develooper.com/ - http://askask.com/
16) Ask Bjørn Hansen Re: qpsmtpd never times out
| +1 vote
Weird -- what does that module/plugin do? It shouldn't make the timeouts not work ... (the timeout...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jul 20, 2009, at 9:45, Stefan Priebe wrote:

[timeouts not working]
> oh i'm really sorry - it was caused by a module config_cache which i
> found somewhere in the net. When i disable it it works fine :-(

Weird -- what does that module/plugin do?  It shouldn't make the  
timeouts not work ...  (the timeout default to 20 minutes if it's not  
specified otherwise).


  - ask
17) Ask Bjørn Hansen Re: qpsmtpd never times out
| +1 vote
Weird - the code (lib/Qpsmtpd/TcpServer/Prefork.pm#read_input) is pretty straightforward. Maybe...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jul 20, 2009, at 1:04, Stefan Priebe wrote:

> I'm using qpsmtpd 0.82 with qpsmtpd-prefork and have set up
> config/timeout
> =>
> 30

Weird - the code (lib/Qpsmtpd/TcpServer/Prefork.pm#read_input) is  
pretty straightforward.  Maybe some goofy safe signals issue?

Most of the code in that method is shared with lib/Qpsmtpd/
TcpServer.pm -- patches to unify them better would be nice, too.


  - ask

--
http://develooper.com/ - http://askask.com/
18) Ask Bjørn Hansen Re: Suggested new README file for qpsmtpd-apache
| +1 vote
Thanks. I'll look at it next week. - ask
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jul 15, 2009, at 2:18, Robin Bowes wrote:

[pushing to github]
> I already did! :)

Thanks.  I'll look at it next week.


  - ask
19) Ask Bjørn Hansen Re: RPM status
| +1 vote
Just clone the repository on github and then go crazy in your "fork". When you are done we'll...
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jul 14, 2009, at 15:54, Robin Bowes wrote:

> How do you want me to get things into git? Should I send you
> something,
> or clone the repo and send a patch, or something? I'm a bit of a git
> neophyte, I'm afraid.

Just clone the repository on github and then go crazy in your "fork".   
When you are done we'll figure out to integrate the changes into "my"  
repository.


  - ask
20) Ask Bjørn Hansen Re: RPM status
| +1 vote
+1 on getting these things into git. (Likewise for the debian stuff if that makes sense). - ask
qpsmtpd
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Jul 13, 2009, at 14:35, Robin Bowes wrote:

> Well, I've done a fair bit of work on the existing spec file, and have
> an 0.82 RPM, which builds directly from the git repository.
>
> I'd be happy to make it all available, or even for it to be checked
> into
> git. I'd also be happy to take on the RPM maintenance.

+1 on getting these things into git.   (Likewise for the debian stuff  
if that makes sense).


  - ask
spacer
Profile | Posts (538)Page 1 of 27: 1 2 3 > >>