[qmailtoaster] QmailToaster-Plus migration
Jake and I are working on migrating qtp.qmailtoaster.com to a different server. The site might be unavailable for an indeterminate period of time, beginning in an hour or so. I hope to have it back up soon, but it could be the beginning of next week before it's done. Depends on how my weekend goes. ;) Thanks for your patience. -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
RE: [qmailtoaster] Firewall.sh
Thanks, I figured it out with the help of Eric. Just added a few more variables and it works good. Ole _ From: Aleksander Podsiadly [mailto:a...@westside.kielce.pl] Sent: 31. juli 2009 19:16 To: qmailtoaster-list@qmailtoaster.com Subject: Re: [qmailtoaster] Firewall.sh W dniu 31.07.2009 10:14, Ole N.Johansen pisze: Hello List, I need som help regarding iptables/firewall.sh I have multiple virtual ipadresses, all official ip addresses. ( 5 ip adr total) I need to add those into the iptables and make the iptables to work as usual, open for ssh, ftp, http, https, imap, pop3, smtp, submission, port 1, port 2, port 3 Yes I have googled it and just getting more confused. I have tested abit but just keep locking up my connectivity to the centos box. Thanks for input. Best Regards Ole J http://lartc.org/ -- Pozdrawiam / Regards, Aleksander Podsiadły mail: a...@westside.kielce.pl jid: a...@jabber.westside.kielce.pl ICQ: 201121279 gg: 9150578
Re: [qmailtoaster] Firewall.sh
Maxwell Smart wrote: Eric, OK, that's exactly how I do it on all counts. I was just wondering if there was an easier way. :) What's the diff between service iptables restart and iptables-restore < /etc/sysconfig/iptables? CJ The former does a save if configured to save before stop, then stop then start (see /etc/init.d/iptables script). The later does a reload w/out stopping (see man iptables-restore). It'd be nice if the init script for iptables had a reload function, but I don't see one. -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Firewall.sh
W dniu 31.07.2009 10:14, Ole N.Johansen pisze: Hello List, I need som help regarding iptables/firewall.sh I have multiple virtual ipadresses, all official ip addresses. ( 5 ip adr total) I need to add those into the iptables and make the iptables to work as usual, open for ssh, ftp, http, https, imap, pop3, smtp, submission, port 1, port 2, port 3 Yes I have googled it and just getting more confused. I have tested abit but just keep locking up my connectivity to the centos box. Thanks for input. Best Regards Ole J http://lartc.org/ -- Pozdrawiam / Regards, Aleksander Podsiad?y mail: a...@westside.kielce.pl jid: a...@jabber.westside.kielce.pl ICQ: 201121279 gg: 9150578
Re: [qmailtoaster] Firewall.sh
Eric, OK, that's exactly how I do it on all counts. I was just wondering if there was an easier way. :) What's the diff between service iptables restart and iptables-restore < /etc/sysconfig/iptables? CJ - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script
I don't know off hand. You'll need to dig into the documentation. John Hansen wrote: Thanks. I'll try that. What type of encryption should I use? John Eric wrote: If you run # /home/vpopmail/bin/vadduser you'll see the various options. Looks like you need to use the -e flag with a password. This lets you specify a standard_encrypted_password. John, you'll need to have encrypted passwords to use this option. John Hansen wrote: Hi PakOgah, Thanks for modifying the script. However, when I run the script, it asks to "Please enter password" for each user, then asks to re-enter the password for confirmation, before going onto the next user. A step in the right direction, but still would like to have the passwords added within the script. So, still looking for the part where the users password is entered by the script and not manually. Thanks, John -- Original Message --- From: PakOgah To: John Hansen , qmailtoaster-list@qmailtoaster.com Sent: Fri, 31 Jul 2009 11:38:32 +0700 Subject: Re: Bulk user import script Halo John, I am replied to qmailtoaster list so everyone can also use it as reference for future use or correct me If I am making an error. In your case, I have modified the script into below === #!/bin/sh # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username Password USERS_FILE="/path/to/file.txt" # The mail domain to which users are created # MAILDOMAIN="@domain.com" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users #PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="10485760" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME PASSWORD do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASSWORD done # === John Hansen wrote: Hi, I'm looking at using this script for a bulk user import, but the users have passwords all ready, so I don't want to use the same default password for everyone. What changes would I need in the script so I can use it with a separate password for each user? I was thinking the format for the users file could just include the extra line for the password. Firstname Lastname Username Password #!/bin/sh # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username USERS_FILE="/path/to/file.txt" # The mail domain to which users are created # MAILDOMAIN="@domain.com" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="10485760" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASS done # Thanks, John -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. --- End of Original Message --- -- -Eric 'shubes' -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script
> John Hansen wrote: > > Hi PakOgah, > > > > Thanks for modifying the script. However, when I run the script, it asks to > > "Please enter password" for each user, then asks to re-enter the password > > for > > confirmation, before going onto the next user. A step in the right > > direction, > > but still would like to have the passwords added within the script. > > > > So, still looking for the part where the users password is entered by the > > script and not manually. > > > > Thanks, > > > > John > > > > > > Constantin wrote: > The first(s) line(s) of USERS_FILE not be empty ! > >Constantin Thanks Constantin. I double-checked and the first line of my USERS_FILE is not empty. John -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Firewall.sh
Maxwell Smart wrote: Firewall related question. If I execute r...@myconsole# iptables -A INPUT -s 10.10.10.10 -j DROP Does this amend the existing table? Does it add the entry to the top or bottom of the file? CJ -A is the same as --append which means to add it to the end of the selected chain (INPUT in this case). Issuing iptables commands to modify the firewall changes the actively running table in memory, but nothing else. These changes will not be persistent, and will be lost when iptables is stopped or the system reboots. In order to save the change, you need to # service iptables save The easiest way to modify iptables settings is to edit the /etc/sysconfig/iptables file. This is the file that the save command (above) creates/modifies, and it's also used when starting the iptables service. After you've made changes there, you can # service iptables restart to make your changes effective. It's a good idea to make a backup copy of this (and any configuration) file before making any changes to it. I would typically do: # cd /etc/sysconfig # cp -p iptables iptables.$(date +%Y%m%d) # vi iptables in order to make changes. This way you can easily tell from the file name when a given configuration backup file was last effective. -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script
Thanks. I'll try that. What type of encryption should I use? John Eric wrote: > If you run > # /home/vpopmail/bin/vadduser > you'll see the various options. > > Looks like you need to use the -e flag with a password. This lets > you specify a standard_encrypted_password. > > John, you'll need to have encrypted passwords to use this option. > > John Hansen wrote: > > Hi PakOgah, > > > > Thanks for modifying the script. However, when I run the script, it asks to > > "Please enter password" for each user, then asks to re-enter the password > > for > > confirmation, before going onto the next user. A step in the right > > direction, > > but still would like to have the passwords added within the script. > > > > So, still looking for the part where the users password is entered by the > > script and not manually. > > > > Thanks, > > > > John > > > > > > > > -- Original Message --- > > From: PakOgah > > To: John Hansen , > > qmailtoaster-list@qmailtoaster.com > > Sent: Fri, 31 Jul 2009 11:38:32 +0700 > > Subject: Re: Bulk user import script > > > >> Halo John, > >> I am replied to qmailtoaster list so everyone can also use it as > >> reference for future use or correct me If I am making an error. > >> In your case, I have modified the script into below > >> === > >> #!/bin/sh > >> # > >> # BULK USER ADDING FOR QMAIL TOASTER > >> # > >> # Created after I ran into an issue of creating 20,000 users on my toaster! > >> # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" > >> # helped me with. > >> # Still very manual, but Work in Progress > >> # > >> # Suggestions to akisa...@ucu.ac.ug > >> # > >> # Change a few variables and you are good to go > >> # > >> # > >> # Location of the users file > >> # Rememeber that the users file is in the format > >> # Firstname Lastname Username Password > >> USERS_FILE="/path/to/file.txt" > >> # The mail domain to which users are created > >> # > >> MAILDOMAIN="@domain.com" > >> # the vadduser command > >> QMAILADD="/home/vpopmail/bin/vadduser" > >> # Select a default password for all users > >> #PASS="mypass" > >> #Specify the Default Quota_in_bytes for your Users > >> # 10 MB = 10 x 1024 x 1024 > >> QUOTA="10485760" > >> #Fun starts here No more variables to change below this line > >> cat ${USERS_FILE} | \ > >> while read FIRSTNAME LASTNAME USERNAME PASSWORD > >> do > >> echo "adding the user: $USERNAME" > >> $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" > >> $USERNAME$MAILDOMAIN $PASSWORD > >> done > >> # > >> === > >> > >> John Hansen wrote: > >>> Hi, > >>> > >>> I'm looking at using this script for a bulk user import, but the users > >>> have > >>> passwords all ready, so I don't want to use the same default password for > >>> everyone. What changes would I need in the script so I can use it with a > >>> separate password for each user? > >>> > >>> I was thinking the format for the users file could just include the extra line > >>> for the password. > >>> Firstname Lastname Username Password > >>> > >>> > >>> #!/bin/sh > >>> # > >>> # BULK USER ADDING FOR QMAIL TOASTER > >>> # > >>> # Created after I ran into an issue of creating 20,000 users on my > >>> toaster! > >>> # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" > >>> # helped me with. > >>> # Still very manual, but Work in Progress > >>> # > >>> # Suggestions to akisa...@ucu.ac.ug > >>> # > >>> # Change a few variables and you are good to go > >>> # > >>> # > >>> # Location of the users file > >>> # Rememeber that the users file is in the format > >>> # Firstname Lastname Username > >>> USERS_FILE="/path/to/file.txt" > >>> # The mail domain to which users are created > >>> # > >>> MAILDOMAIN="@domain.com" > >>> # the vadduser command > >>> QMAILADD="/home/vpopmail/bin/vadduser" > >>> # Select a default password for all users > >>> PASS="mypass" > >>> #Specify the Default Quota_in_bytes for your Users > >>> # 10 MB = 10 x 1024 x 1024 > >>> QUOTA="10485760" > >>> #Fun starts here No more variables to change below this line > >>> cat ${USERS_FILE} | \ > >>> while read FIRSTNAME LASTNAME USERNAME > >>> do > >>> echo "adding the user: $USERNAME" > >>> $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN > > $PASS > >>> done > >>> # > >>> > >>> Thanks, > >>> > >>> John > >>> > >>> > >>> > >> -- > >> This message has been scanned for viruses and > >> dangerous content by the Cotter Technology > >> Department, and is believed to be clean. > > --- End of Original Message --- > > > > > > -- > -Eric 'shubes' > > - > Qmailtoaster is sponsored by Vickers Consulting Group > (www.vickersconsulting.com)Vickers Consulting Group offers > Qmailtoaster support and installations. If you need > professional help with your setup, contact them today! > --
Re: [qmailtoaster] Re: Bulk user import script
John Hansen wrote: Hi PakOgah, Thanks for modifying the script. However, when I run the script, it asks to "Please enter password" for each user, then asks to re-enter the password for confirmation, before going onto the next user. A step in the right direction, but still would like to have the passwords added within the script. So, still looking for the part where the users password is entered by the script and not manually. Thanks, John The first(s) line(s) of USERS_FILE not be empty ! Constantin - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Firewall.sh
Firewall related question. If I execute r...@myconsole# iptables -A INPUT -s 10.10.10.10 -j DROP Does this amend the existing table? Does it add the entry to the top or bottom of the file? CJ - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Re: Bulk user import script
If you run # /home/vpopmail/bin/vadduser you'll see the various options. Looks like you need to use the -e flag with a password. This lets you specify a standard_encrypted_password. John, you'll need to have encrypted passwords to use this option. John Hansen wrote: Hi PakOgah, Thanks for modifying the script. However, when I run the script, it asks to "Please enter password" for each user, then asks to re-enter the password for confirmation, before going onto the next user. A step in the right direction, but still would like to have the passwords added within the script. So, still looking for the part where the users password is entered by the script and not manually. Thanks, John -- Original Message --- From: PakOgah To: John Hansen , qmailtoaster-list@qmailtoaster.com Sent: Fri, 31 Jul 2009 11:38:32 +0700 Subject: Re: Bulk user import script Halo John, I am replied to qmailtoaster list so everyone can also use it as reference for future use or correct me If I am making an error. In your case, I have modified the script into below === #!/bin/sh # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username Password USERS_FILE="/path/to/file.txt" # The mail domain to which users are created # MAILDOMAIN="@domain.com" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users #PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="10485760" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME PASSWORD do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASSWORD done # === John Hansen wrote: Hi, I'm looking at using this script for a bulk user import, but the users have passwords all ready, so I don't want to use the same default password for everyone. What changes would I need in the script so I can use it with a separate password for each user? I was thinking the format for the users file could just include the extra line for the password. Firstname Lastname Username Password #!/bin/sh # # BULK USER ADDING FOR QMAIL TOASTER # # Created after I ran into an issue of creating 20,000 users on my toaster! # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" # helped me with. # Still very manual, but Work in Progress # # Suggestions to akisa...@ucu.ac.ug # # Change a few variables and you are good to go # # # Location of the users file # Rememeber that the users file is in the format # Firstname Lastname Username USERS_FILE="/path/to/file.txt" # The mail domain to which users are created # MAILDOMAIN="@domain.com" # the vadduser command QMAILADD="/home/vpopmail/bin/vadduser" # Select a default password for all users PASS="mypass" #Specify the Default Quota_in_bytes for your Users # 10 MB = 10 x 1024 x 1024 QUOTA="10485760" #Fun starts here No more variables to change below this line cat ${USERS_FILE} | \ while read FIRSTNAME LASTNAME USERNAME do echo "adding the user: $USERNAME" $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASS done # Thanks, John -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. --- End of Original Message --- -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Firewall.sh
The only thing in firewall.sh that uses $MYIP is: iptables -A INPUT -s $MYIP -i ! lo -j DROP I expect that if you simply remove that line, it would work just fine. Ole N.Johansen wrote: Hello List, I need som help regarding iptables/firewall.sh I have multiple virtual ipadresses, all official ip addresses. ( 5 ip adr total) I need to add those into the iptables and make the iptables to work as usual, open for ssh, ftp, http, https, imap, pop3, smtp, submission, port 1, port 2, port 3 Yes I have googled it and just getting more confused. I have tested abit but just keep locking up my connectivity to the centos box. Thanks for input. Best Regards Ole J -- -Eric 'shubes' - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
[qmailtoaster] Re: Bulk user import script
Hi PakOgah, Thanks for modifying the script. However, when I run the script, it asks to "Please enter password" for each user, then asks to re-enter the password for confirmation, before going onto the next user. A step in the right direction, but still would like to have the passwords added within the script. So, still looking for the part where the users password is entered by the script and not manually. Thanks, John -- Original Message --- From: PakOgah To: John Hansen , qmailtoaster-list@qmailtoaster.com Sent: Fri, 31 Jul 2009 11:38:32 +0700 Subject: Re: Bulk user import script > Halo John, > I am replied to qmailtoaster list so everyone can also use it as > reference for future use or correct me If I am making an error. > In your case, I have modified the script into below > === > #!/bin/sh > # > # BULK USER ADDING FOR QMAIL TOASTER > # > # Created after I ran into an issue of creating 20,000 users on my toaster! > # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" > # helped me with. > # Still very manual, but Work in Progress > # > # Suggestions to akisa...@ucu.ac.ug > # > # Change a few variables and you are good to go > # > # > # Location of the users file > # Rememeber that the users file is in the format > # Firstname Lastname Username Password > USERS_FILE="/path/to/file.txt" > # The mail domain to which users are created > # > MAILDOMAIN="@domain.com" > # the vadduser command > QMAILADD="/home/vpopmail/bin/vadduser" > # Select a default password for all users > #PASS="mypass" > #Specify the Default Quota_in_bytes for your Users > # 10 MB = 10 x 1024 x 1024 > QUOTA="10485760" > #Fun starts here No more variables to change below this line > cat ${USERS_FILE} | \ > while read FIRSTNAME LASTNAME USERNAME PASSWORD > do > echo "adding the user: $USERNAME" > $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" > $USERNAME$MAILDOMAIN $PASSWORD > done > # > === > > John Hansen wrote: > > Hi, > > > > I'm looking at using this script for a bulk user import, but the users have > > passwords all ready, so I don't want to use the same default password for > > everyone. What changes would I need in the script so I can use it with a > > separate password for each user? > > > > I was thinking the format for the users file could just include the extra > > line > > for the password. > > Firstname Lastname Username Password > > > > > > #!/bin/sh > > # > > # BULK USER ADDING FOR QMAIL TOASTER > > # > > # Created after I ran into an issue of creating 20,000 users on my toaster! > > # Initial ideas come from a script that PakOgah "pako...@pala.bo-tak.info" > > # helped me with. > > # Still very manual, but Work in Progress > > # > > # Suggestions to akisa...@ucu.ac.ug > > # > > # Change a few variables and you are good to go > > # > > # > > # Location of the users file > > # Rememeber that the users file is in the format > > # Firstname Lastname Username > > USERS_FILE="/path/to/file.txt" > > # The mail domain to which users are created > > # > > MAILDOMAIN="@domain.com" > > # the vadduser command > > QMAILADD="/home/vpopmail/bin/vadduser" > > # Select a default password for all users > > PASS="mypass" > > #Specify the Default Quota_in_bytes for your Users > > # 10 MB = 10 x 1024 x 1024 > > QUOTA="10485760" > > #Fun starts here No more variables to change below this line > > cat ${USERS_FILE} | \ > > while read FIRSTNAME LASTNAME USERNAME > > do > > echo "adding the user: $USERNAME" > > $QMAILADD -q $QUOTA -c "$FIRSTNAME $LASTNAME" $USERNAME$MAILDOMAIN $PASS > > done > > # > > > > Thanks, > > > > John > > > > > > > > -- > This message has been scanned for viruses and > dangerous content by the Cotter Technology > Department, and is believed to be clean. --- End of Original Message --- -- This message has been scanned for viruses and dangerous content by the Cotter Technology Department, and is believed to be clean. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
[qmailtoaster] Firewall.sh
Hello List, I need som help regarding iptables/firewall.sh I have multiple virtual ipadresses, all official ip addresses. ( 5 ip adr total) I need to add those into the iptables and make the iptables to work as usual, open for ssh, ftp, http, https, imap, pop3, smtp, submission, port 1, port 2, port 3 Yes I have googled it and just getting more confused. I have tested abit but just keep locking up my connectivity to the centos box. Thanks for input. Best Regards Ole J
[qmailtoaster] how to patch outgoingips.patch
Dear List Im running qmailtoaster with 10 virtual domains. I want to implement, mail sent from each domain has its own IP address. while searching google i found the patch qmail-1.03_outgoingips.patch and the link is http://rno-consultores.com/mail/qmail/qmail-1.03_outgoingips.patch If anyone tried this before please share your experience and guide me how to patch my qmail. With Regards, Vinay Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/