Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading to netqmail from qmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dendenners
n00b
n00b


Joined: 17 Oct 2003
Posts: 28
Location: Inside a shirt

PostPosted: Wed Feb 14, 2007 9:21 am    Post subject: Upgrading to netqmail from qmail Reply with quote

Hi,
I noticed in the GWN that I'm supposed to upgrade from qmail to netqmail. I set up qmail about 9 months ago and its been running fine for me. I'm afraid if I upgrade now I'll break my mail server, as I've forgotten a lot of what I did to get the thing running in the first place. Is upgrading painless - i.e. is it just a matter of
Code:
emerge -C qmail

and
Code:
emerge netqmail

or do I have to worry about changing any config files?
Thanks
Denis
Back to top
View user's profile Send private message
djco
Developer
Developer


Joined: 29 Mar 2003
Posts: 67
Location: 52.36, 4.89

PostPosted: Wed Feb 14, 2007 3:26 pm    Post subject: Reply with quote

I was wondering about this, as well.

Additionally, if I do this, will I lose any mail arriving at my host during the migration, or is there some way of preventing that from happening?
Back to top
View user's profile Send private message
MoreCoffeePlease
n00b
n00b


Joined: 18 May 2004
Posts: 36
Location: London

PostPosted: Wed Feb 14, 2007 5:15 pm    Post subject: Reply with quote

Mark me down as another user keen to know more about going through with this upgrade... Please!

8O

It took me long enough to get everything set up with vpopmail, courier etc, and I'm really not keen to go through it all again, especially as I've forgotten most of what I learnt then to get it all set up... I have no idea what the risks of doing this are, and what I should be doing to make sure everything goes smoothly.

To be honest, I was a bit disappointed to see that what appears (to me with no knowledge) to be a big potential change to my system was given such a terse and seemingly unhelpful explaination in the weekly news, with no links to any other documentation other than the netqmail site.

I'm basically panicing here, and wondering if that box will ever get upgraded again! Not really something I want to do though...
Back to top
View user's profile Send private message
kreep69
n00b
n00b


Joined: 30 Jun 2004
Posts: 8

PostPosted: Sat Mar 03, 2007 2:47 pm    Post subject: Reply with quote

To upgrade from qmail 1.03 to netqmail 1.05 just -

1) stop your qmail completely run /etc/init.d/svscan stop (or use svc commands)
1a) make sure no processes are running (ps axf | grep qmail [or supervise]) if they are wait until finished or kill the processes.
2) emerge --unmerge mail-mta/qmail
3) emerge mail-mta/netqmail ( check this guide for some new use flags and other good info - http://forums.gentoo.org/viewtopic-t-539101-highlight-netqmail.html )
3a) If you patched qmail with anything like chkuser patch you will have to re-apply this to netqmail ebuild then install/qmerge.
4) fix/update config files (run etc-update) - be careful to update their format
5) run /var/qmail/bin/queue-fix (or there is a queue-repair app you can try)
6) Start it back up /etc/init.d/svscan start (or use appropriate svc command)
7) Monitor all your qmail logs and make sure everything is running well.

For me, everything stayed working and netqmail seems to be more updated and a little faster.

P.S. The whole gentoo newsletter posting about this could have been handled better. Of course at the same time you could have interpreted that since no warnings were raised it implies its safe to upgrade.

P.P.S. If you're not using the chkuser patch for qmail/netqmail you should as its really excellent (fix Maildir to .maildir manually for now in the source [only in 1 file, 1 place] until there is an option in the config for it) - http://www.interazioni.it/opensource/chkuser/

P.P.P.S. To patch the netqmail ebuild (for netqmail-1.05-r4) -
ebuild /usr/portage/mail-mta/netqmail/netqmail-1.05-r4.ebuild unpack
patch as needed in /var/tmp/portage/mail-mta/netqmail-1.05-r4/work/netqmail-1.05/netqmail-1.05/
ebuild /usr/portage/mail-mta/netqmail/netqmail-1.05-r4.ebuild compile
ebuild /usr/portage/mail-mta/netqmail/netqmail-1.05-r4.ebuild install
ebuild /usr/portage/mail-mta/netqmail/netqmail-1.05-r4.ebuild qmerge

Note: If you're re-compiling more than once make sure to read the output at the bottom about erasing a certain file, etc.

Happy Gentooing :)
_________________
/.kR
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1282
Location: Ashford, Kent

PostPosted: Sat Mar 03, 2007 8:21 pm    Post subject: Reply with quote

There's a built-in method to patch netqmail - basically put the patches in a directory and specify that directory as QMAIL_PATCH_DIR in /etc/make.conf. Read the ebuild for full details.
_________________
http://gentoo-wiki.com :: http://lug.org.uk :: http://www.linux.org/groups/ :: User Blogs
Back to top
View user's profile Send private message
spacejock
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 94
Location: Australia

PostPosted: Wed Apr 18, 2007 11:23 am    Post subject: Reply with quote

I really wish they'd left the badrcptto patch in, though. My spam just rocketed up again.
_________________
Author of the Hal Spacejock series ... "Better than Red Dwarf" - Tom Holt
Download the first book free
Back to top
View user's profile Send private message
nowlodek
n00b
n00b


Joined: 20 Jun 2006
Posts: 7

PostPosted: Wed Apr 25, 2007 3:16 pm    Post subject: Reply with quote

spacejock wrote:
I really wish they'd left the badrcptto patch in, though. My spam just rocketed up again.


Use SPP plugin instead. qmail-spp.sourceforge.net
Back to top
View user's profile Send private message
spacejock
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 94
Location: Australia

PostPosted: Sun Apr 29, 2007 2:21 pm    Post subject: Reply with quote

Thanks. I've got the badrcptto.php script, saved it to the plugins folder and now I'm about to edit the control/smtpplugins file. I notice the example has :badrcptto without the .php and with a : in front - do I copy that or put the .php? And do I need to change the execute permissions on the php script?

I couldn't find this in the documentation.
_________________
Author of the Hal Spacejock series ... "Better than Red Dwarf" - Tom Holt
Download the first book free
Back to top
View user's profile Send private message
spacejock
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2003
Posts: 94
Location: Australia

PostPosted: Wed May 02, 2007 3:28 am    Post subject: Reply with quote

Never mind, answered my own questions and it's working fine. Yes, you need the .php extension and yes, you need to set the execute bit. The : prefix is only required if you want to specify command-line arguments for the addon script.
_________________
Author of the Hal Spacejock series ... "Better than Red Dwarf" - Tom Holt
Download the first book free
Back to top
View user's profile Send private message
nastasa_andrey
n00b
n00b


Joined: 24 Mar 2004
Posts: 62

PostPosted: Thu May 17, 2007 8:33 am    Post subject: Reply with quote

Did someone try to patch netqmail with qmail-dk patch?
Back to top
View user's profile Send private message
br41n
n00b
n00b


Joined: 16 Nov 2006
Posts: 15

PostPosted: Fri May 18, 2007 2:36 pm    Post subject: Reply with quote

Also interested in this, anyone?
Back to top
View user's profile Send private message
brianlmoon
n00b
n00b


Joined: 04 Apr 2005
Posts: 11

PostPosted: Wed Jul 18, 2007 3:18 am    Post subject: badrcptto for PHP 5 Reply with quote

I could not get the version working from their site. It was using $_ENV and it should use $_SERVER.

http://dev.phorum.org/badrcptto

I also added preg support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum