diff options
author | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-24 18:32:15 +0100 |
---|---|---|
committer | Miquel Lionel <lionelmiquel@sfr.fr> | 2021-02-24 18:32:15 +0100 |
commit | c9218d0c33b9fc80694de2b3ddab254609f08f80 (patch) | |
tree | 0b3a929140de2c1bb5e69c11877414eb51dd13ff | |
parent | 32d954a9ad67db133503f1900dda80061be1f5a3 (diff) | |
download | gpigeon-c9218d0c33b9fc80694de2b3ddab254609f08f80.tar.gz gpigeon-c9218d0c33b9fc80694de2b3ddab254609f08f80.zip |
remove useless install script, simpler randregex
-rw-r--r-- | domains.csv | 323 | ||||
-rwxr-xr-x | gpigeon-template.cgi | 6 | ||||
-rwxr-xr-x | install.sh | 181 |
3 files changed, 2 insertions, 508 deletions
diff --git a/domains.csv b/domains.csv deleted file mode 100644 index ef1d541..0000000 --- a/domains.csv +++ /dev/null @@ -1,323 +0,0 @@ -ADDRESS,IMAP,imap port,SMTP,smtp port -420blaze.it,mail.cock.li,993,mail.cock.li,587 -8chan.co,mail.cock.li,993,mail.cock.li,587 -aaathats3as.com,mail.cock.li,993,mail.cock.li,587 -accountant.com,imap.mail.com,993,smtp.mail.com,587 -activist.com,imap.mail.com,993,smtp.mail.com,587 -ad.unsw.edu.au,outlook.office365.com,993,smtp.office365.com,587 -adexec.com,imap.mail.com,993,smtp.mail.com,587 -airmail.cc,mail.cock.li,993,mail.cock.li,587 -allergist.com,imap.mail.com,993,smtp.mail.com,587 -alumni.bits-pilani.ac.in,imap.gmail.com,993,smtp.gmail.com,465 -alumni.com,imap.mail.com,993,smtp.mail.com,587 -alumnidirector.com,imap.mail.com,993,smtp.mail.com,587 -alunos.utfpr.edu.br,imap.gmail.com,993,smtp.gmail.com,587 -anche.no,mail.autistici.org,993,smtp.autistici.org,465 -angelic.com,imap.mail.com,993,smtp.mail.com,587 -aol.com,imap.aol.com,993,smtp.aol.com,465 -appraiser.net,imap.mail.com,993,smtp.mail.com,587 -aquilenet.fr,imap.aquilenet.fr,993,smtp.aquilenet.fr,587 -archaeologist.com,imap.mail.com,993,smtp.mail.com,587 -arcticmail.com,imap.mail.com,993,smtp.mail.com,587 -artlover.com,imap.mail.com,993,smtp.mail.com,587 -asia.com,imap.mail.com,993,smtp.mail.com,587 -auctioneer.net,imap.mail.com,993,smtp.mail.com,587 -autistiche.org,mail.autistici.org,993,smtp.autistici.org,465 -autistici.org,mail.autistici.org,993,smtp.autistici.org,465 -autograf.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -autoproduzioni.net,mail.autistici.org,993,smtp.autistici.org,465 -bartender.net,imap.mail.com,993,smtp.mail.com,587 -bastardi.net,mail.autistici.org,993,smtp.autistici.org,465 -bguth.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587 -bigpond.com,imap.telstra.com,143,smtp.telstra.com,587 -bikerider.com,imap.mail.com,993,smtp.mail.com,587 -billycarlyle.uk,mail.muny.us,993,mail.muny.us,465 -birdlover.com,imap.mail.com,993,smtp.mail.com,587 -bjoernguthphotography.de,wp300.webpack.hosteurope.de,993,wp300.webpack.hosteurope.de,587 -bocken.org,imap.gmail.com,993,smtp.gmail.com,465 -brew-meister.com,imap.mail.com,993,smtp.mail.com,587 -bruttocarattere.org,mail.autistici.org,993,smtp.autistici.org,465 -canaglie.net,mail.autistici.org,993,smtp.autistici.org,465 -canaglie.org,mail.autistici.org,993,smtp.autistici.org,465 -carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -cash4u.com,imap.mail.com,993,smtp.mail.com,587 -ceng.metu.edu.tr,imap.ceng.metu.edu.tr,993,mailhost.ceng.metu.edu.tr,587 -cheerful.com,imap.mail.com,993,smtp.mail.com,587 -chef.net,imap.mail.com,993,smtp.mail.com,587 -chemist.com,imap.mail.com,993,smtp.mail.com,587 -chrissx.ga,chrissx.ga,993,chrissx.ga,25 -clarkson.edu,imap.gmail.com,993,smtp.gmail.com,587 -clasnet.sunyocc.edu,outlook.office365.com,993,smtp.office365.com,587 -clerk.com,imap.mail.com,993,smtp.mail.com,587 -clubmember.org,imap.mail.com,993,smtp.mail.com,587 -cmail.carleton.ca,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -cn.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -cocaine.ninja,mail.cock.li,993,mail.cock.li,587 -cock.email,mail.cock.li,993,mail.cock.li,587 -cock.li,mail.cock.li,993,mail.cock.li,587 -cock.lu,mail.cock.li,993,mail.cock.li,587 -collector.org,imap.mail.com,993,smtp.mail.com,587 -columnist.com,imap.mail.com,993,smtp.mail.com,587 -comic.com,imap.mail.com,993,smtp.mail.com,587 -computer4u.com,imap.mail.com,993,smtp.mail.com,587 -consultant.com,imap.mail.com,993,smtp.mail.com,587 -contractor.net,imap.mail.com,993,smtp.mail.com,587 -coolsite.net,imap.mail.com,993,smtp.mail.com,587 -counsellor.com,imap.mail.com,993,smtp.mail.com,587 -cryptolab.net,mail.autistici.org,993,smtp.autistici.org,465 -cumallover.me,mail.cock.li,993,mail.cock.li,587 -cyberservices.com,imap.mail.com,993,smtp.mail.com,587 -datentopf.org,mail.datentopf.org,993,mail.datentopf.org,587 -deliveryman.com,imap.mail.com,993,smtp.mail.com,587 -dicksinhisan.us,mail.cock.li,993,mail.cock.li,587 -dicksinmyan.us,mail.cock.li,993,mail.cock.li,587 -diplomats.com,imap.mail.com,993,smtp.mail.com,587 -disroot.org,disroot.org,993,disroot.org,587 -distruzione.org,mail.autistici.org,993,smtp.autistici.org,465 -dr.com,imap.mail.com,993,smtp.mail.com,587 -duke.edu,outlook.office365.com,993,smtp.office365.com,587 -email.arizona.edu,imap.gmail.com,993,smtp.gmail.com,587 -email.com,imap.mail.com,993,smtp.mail.com,587 -eneco.com,outlook.office365.com,993,smtp.office365.com,587 -engineer.com,imap.mail.com,993,smtp.mail.com,587 -erciyes.edu.tr,posta.erciyes.edu.tr,993,smtp.erciyes.edu.tr,587 -ethancoe.com,mail.privateemail.com,993,mail.privateemail.com,465 -ethz.ch,mail.ethz.ch,993,mail.ethz.ch,587 -etu.upmc.fr,courriel.upmc.fr,993,smtps.upmc.fr,587 -europe.com,imap.mail.com,993,smtp.mail.com,587 -fastmail.com,imap.fastmail.com,993,smtp.fastmail.com,465 -fastmail.fm,imap.fastmail.com,993,smtp.fastmail.com,465 -firemail.cc,mail.cock.li,993,mail.cock.li,587 -forpsi.com,imap.forpsi.com,993,smtp.forpsi.com,465 -forthnet.gr,mail.forthnet.gr,993,smtp-auth.forthnet.gr,465 -fsmpi.rwth-aachen.de,mail.fsmpi.rwth-aachen.de,993,mail.fsmpi.rwth-aachen.de,465 -fsu-jena,exchange.uni-jena.de,993,smtp.uni-jena.de,587 -gcc.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -getbackinthe.kitchen,mail.cock.li,993,mail.cock.li,587 -gmail.com,imap.gmail.com,993,smtp.gmail.com,587 -gmx.at,imap.gmx.net,993,mail.gmx.net,587 -gmx.com,imap.gmx.net,993,mail.gmx.net,587 -gmx.de,imap.gmx.net,993,mail.gmx.net,587 -gmx.eu,imap.gmx.net,993,mail.gmx.net,587 -gmx.fr,imap.gmx.com,993,mail.gmx.com,587 -gmx.info,imap.gmx.net,993,mail.gmx.net,587 -gmx.net,imap.gmx.net,993,mail.gmx.net,587 -gmx.org,imap.gmx.net,993,mail.gmx.net,587 -go2.pl,poczta.o2.pl,993,poczta.o2.pl,465 -goat.si,mail.cock.li,993,mail.cock.li,587 -googlemail.com,imap.googlemail.com,993,smtp.googlemail.com,587 -grrlz.net,mail.autistici.org,993,smtp.autistici.org,465 -hacari.com,mail.autistici.org,993,smtp.autistici.org,465 -hacari.net,mail.autistici.org,993,smtp.autistici.org,465 -hacari.org,mail.autistici.org,993,smtp.autistici.org,465 -helsinki.fi,outlook.office365.com,993,smtp.helsinki.fi,587 -hhu.de,mail.hhu.de,993,mail.hhu.de,465 -hitler.rocks,mail.cock.li,993,mail.cock.li,587 -horsefucker.org,mail.cock.li,993,mail.cock.li,587 -hostgator,gator4171.hostgator.com,993,gator4171.hostgator.com,587 -hotmail.be,outlook.office365.com,993,smtp.office365.com,587 -hotmail.ca,outlook.office365.com,993,smtp.office365.com,587 -hotmail.cl,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.id,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.il,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.in,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.jp,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.kr,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.th,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.uk,outlook.office365.com,993,smtp.office365.com,587 -hotmail.co.za,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -hotmail.com.ar,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.au,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.br,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.hk,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.tr,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.tw,outlook.office365.com,993,smtp.office365.com,587 -hotmail.com.vn,outlook.office365.com,993,smtp.office365.com,587 -hotmail.cz,outlook.office365.com,993,smtp.office365.com,587 -hotmail.de,outlook.office365.com,993,smtp.office365.com,587 -hotmail.dk,outlook.office365.com,993,smtp.office365.com,587 -hotmail.es,outlook.office365.com,993,smtp.office365.com,587 -hotmail.fi,outlook.office365.com,993,smtp.office365.com,587 -hotmail.fr,outlook.office365.com,993,smtp.office365.com,587 -hotmail.gr,outlook.office365.com,993,smtp.office365.com,587 -hotmail.hu,outlook.office365.com,993,smtp.office365.com,587 -hotmail.it,outlook.office365.com,993,smtp.office365.com,587 -hotmail.lt,outlook.office365.com,993,smtp.office365.com,587 -hotmail.lv,outlook.office365.com,993,smtp.office365.com,587 -hotmail.my,outlook.office365.com,993,smtp.office365.com,587 -hotmail.nl,outlook.office365.com,993,smtp.office365.com,587 -hotmail.no,outlook.office365.com,993,smtp.office365.com,587 -hotmail.ph,outlook.office365.com,993,smtp.office365.com,587 -hotmail.rs,outlook.office365.com,993,smtp.office365.com,587 -hotmail.se,outlook.office365.com,993,smtp.office365.com,587 -hotmail.sg,outlook.office365.com,993,smtp.office365.com,587 -hotmail.sk,outlook.office365.com,993,smtp.office365.com,587 -hs-mittweida.de,mail.hs-mittweida.de,993,mail.hs-mittweida.de,465 -humbug.pw,imap.migadu.com,993,smtp.migadu.com,587 -hushmail.com,imap.hushmail.com,993,smtp.hushmail.com,465 -icloud.com,imap.mail.me.com,993,smtp.mail.me.com,587 -illinois.edu, imap.gmail.com,993,smtp.gmail.com,465 -in.tum.de,mail.in.tum.de,993,mail.in.tum.de,465 -iname.com,imap.mail.com,993,smtp.mail.com,587 -inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587 -infomaniak.com,imap.infomaniak.com,993,imap.infomaniak.com,587 -insiberia.net,mail.autistici.org,993,smtp.autistici.org,465 -insicuri.net,mail.autistici.org,993,smtp.autistici.org,465 -interactio.io,imap.gmail.com,993,smtp.gmail.com,587 -interia.eu,poczta.interia.pl,993,poczta.interia.pl,465 -interia.pl,poczta.interia.pl,993,poczta.interia.pl,465 -inventati.org,mail.autistici.org,993,smtp.autistici.org,465 -ionos.de,imap.ionos.de,993,smtp.ionos.de,587 -itu.dk,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -kean.edu,imap.gmail.com,993,smtp.gmail.com,587 -kipras.org,mail.kipras.org,993,mail.kipras.org,587 -krutt.org,mail.autistici.org,993,smtp.autistici.org,465 -kth.se,webmail.kth.se,993,smtp.kth.se,587 -lavabit.com,lavabit.com,993,lavabit.com,587 -librem.one,imap.librem.one,993,smtp.librem.one,465 -linuxmail.org,imap.mail.com,993,smtp.mail.com,587 -live.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -live.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -live.rhul.ac.uk,outlook.office365.com,993,smtp.office365.com,587 -logorroici.org,mail.autistici.org,993,smtp.autistici.org,465 -loves.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587 -loves.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587 -lukesmith.xyz,mail.lukesmith.xyz,993,mail.lukesmith.xyz,587 -mail.com,imap.mail.com,993,smtp.mail.com,587 -mail.de,imap.mail.de,993,smtp.mail.de,465 -mail.mcgill.ca,outlook.office365.com,993,smtp.office365.com,587 -mail.polimi.it,outlook.office365.com,993,smtp.office365.com,587 -mail.ru,imap.mail.ru,993,smtp.mail.ru,465 -mailbox.org,imap.mailbox.org,993,smtp.mailbox.org,587 -mailbox.tu-dresden.de,msx.tu-dresden.de,993,msx.tu-dresden.de,587 -mailfence.com,imap.mailfence.com,993,smtp.mailfence.com,465 -mailo.com,mail.mailo.com,993,mail.mailo.com,465 -memeware.net,mail.cock.li,993,mail.cock.li,587 -metu.edu.tr,imap.metu.edu.tr,993,smtp.metu.edu.tr,465 -ml1.net,imap.fastmail.com,993,smtp.fastmail.com,465 -mortemale.org,mail.autistici.org,993,smtp.autistici.org,465 -msn.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -muny.us,mail.muny.us,993,mail.muny.us,465 -myself.com,imap.mail.com,993,smtp.mail.com,587 -narod.ru,imap.yandex.com,993,smtp.yandex.com,587 -national.shitposting.agency,mail.cock.li,993,mail.cock.li,587 -ncsu.edu,imap.gmail.com,993,smtp.gmail.com,587 -netcourrier.com,mail.netcourrier.com,993,mail.netcourrier.com,465 -nigge.rs,mail.cock.li,993,mail.cock.li,587 -niser.ac.in,imap.gmail.com,993,smtp.gmail.com,587 -nuke.africa,mail.cock.li,993,mail.cock.li,587 -nyu.edu,imap.gmail.com,993,smtp.gmail.com,587 -o2.pl,poczta.o2.pl,993,poczta.o2.pl,465 -odu.edu,imap.gmail.com,993,smtp.gmail.com,587 -one.com,imap.one.com,993,send.one.com,465 -onenetbeyond.org,mail.autistici.org,993,smtp.autistici.org,465 -onet.com.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -onet.eu,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,587 -online.de,imap.1und1.de,993,smtp.1und1.de,465 -op.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -opoczta.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -orange.fr,imap.orange.fr,993,smtp.orange.fr,465 -outlook.at,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -outlook.com,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -outlook.de,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -outlook.es,outlook.office365.com,993,smtp.office365.com,587 -paranoici.org,mail.autistici.org,993,smtp.autistici.org,465 -pm.me,127.0.0.1,1143,127.0.0.1,1025 -poczta.fm,poczta.interia.pl,993,poczta.interia.pl,465 -poczta.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -polimi.it,outlook.office365.com,993,smtp.office365.com,587 -polito.it,mail.polito.it,993,mail.polito.it,465 -polito.it,mail.polito.it,993,mail.polito.it,465 -post.com,imap.mail.com,993,smtp.mail.com,587 -posteo.de,posteo.de,993,posteo.de,587 -posteo.net,posteo.de,993,posteo.de,587 -privacyrequired.com,mail.autistici.org,993,smtp.autistici.org,465 -prokonto.pl,poczta.o2.pl,993,poczta.o2.pl,465 -protonmail.ch,127.0.0.1,1143,127.0.0.1,1025 -protonmail.com,127.0.0.1,1143,127.0.0.1,1025 -rape.lol,mail.cock.li,993,mail.cock.li,587 -redchan.it,mail.cock.li,993,mail.cock.li,587 -resch.pw,mail.resch.pw,993,mail.resch.pw,587 -riseup.net,mail.riseup.net,993,mail.riseup.net,465 -rmcacs.org,imap.gmail.com,993,smtp.gmail.com,587 -runbox.com,mail.runbox.com,993,mail.runbox.com,587 -rwth-aachen.de,mail.rwth-aachen.de,993,mail.rwth-aachen.de,587 -sapo.pt,imap.sapo.pt,993,smtp.sapo.pt,587 -smail.inf.h-brs.de,imap.inf.h-brs.de,993,smtp.inf.h-brs.de,587 -southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587 -spoko.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -st.amu.edu.pl,outlook.office365.com,993,smtp.office365.com,587 -stevens.edu,imap.outlook.com,993,smtp.outlook.com,587 -stronzi.org,mail.autistici.org,993,smtp.autistici.org,465 -stud.tu-darmstadt.de,imap.stud.tu-darmstadt.de,993,smtp.tu-darmstadt.de,465 -stud.uis.no,outlook.office365.com,993,smtp.office365.com,587 -stud.uni-bamberg.de,outlook.office365.com,993,smtp.office365.com,587 -student.binadarma.ac.id,imap.gmail.com,993,smtp.gmail.com,587 -student.rmit.edu.au,outlook.office365.com,993,smtp.office365.com,587 -student.tuwien.ac.at,mail.student.tuwien.ac.at,993,mail.student.tuwien.ac.at,587 -student.utwente.nl,imap.gmail.com,993,smtp.gmail.com,587 -studenti.unipi.it,outlook.office365.com,993,smtp.office365.com,587 -students.rmcacs.org,imap.gmail.com,993,smtp.gmail.com,587 -students.southwales.ac.uk,imap.gmail.com,993,smtp.gmail.com,587 -studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587 -studio.unibo.it,outlook.office365.com,993,smtp.office365.com,587 -studserv.uni-leipzig.de,studserv.uni-leipzig.de,993,studserv.uni-leipzig.de,25 -subvertising.org,mail.autistici.org,993,smtp.autistici.org,465 -t-online.de,secureimap.t-online.de,993,securesmtp.t-online.de,465 -techie.com,imap.mail.com,993,smtp.mail.com,587 -tecnico.ulisboa.pt,mail.tecnico.ulisboa.pt,993,mail.tecnico.ulisboa.pt,465 -teknik.io,mail.teknik.io,993,mail.teknik.io,587 -telenet.be,imap.telenet.be,993,smtp.telenet.be,587 -tfwno.gf,mail.cock.li,993,mail.cock.li,587 -tlen.pl,poczta.o2.pl,993,poczta.o2.pl,465 -tlu.edu,imap-mail.outlook.com,993,smtp-mail.outlook.com,587 -tquad.ai,imap.mail.eu-west-1.awsapps.com,993,smtp.mail.eu-west-1.awsapps.com,465 -tu-harburg.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587 -tuhh.de,mail.tu-harburg.de,993,mail.tu-harburg.de,587 -tum.de,xmail.mwn.de,993,postout.lrz.de,587 -txstate.edu,outlook.office365.com,993,smtp.office365.com,587 -ua.pt,outlook.office365.com,993,mail.ua.pt,25 -uach.mx,imap.gmail.com,993,smtp.gmail.com,587 -ucdavis.edu,imap.gmail.com,993,smtp.gmail.com,587 -uni-duesseldorf.de,mail.hhu.de,993,mail.hhu.de,465 -unilodz.eu,outlook.office365.com,993,smtp.office365.com,587 -unitybox.de,mail.unity-mail.de,993,mail.unity-mail.de,587 -univ-ubs.fr,partage.univ-ubs.fr,993,partage.univ-ubs.fr,587 -uoregon.edu,imap.uoregon.edu,993,smtp.uoregon.edu,587 -uqtr.ca,outlook.office365.com,993,smtp.office365.com,587 -usa.com,imap.mail.com,993,smtp.mail.com,587 -utas.edu.au,outlook.office365.com,993,smtp.office365.com,587 -utdallas.edu,outlook.office365.com,993,smtp.office365.com,587 -uw.edu,imap.gmail.com,993,smtp.gmail.com,465 -uwcad.it,imap.gmail.com,993,smtp.gmail.com,465 -uymail.com,imap.mail.com,993,smtp.mail.com,587 -vip.onet.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -vivaldi.net,imap.vivaldi.net,993,smtp.vivaldi.net,587 -vp.pl,imap.poczta.onet.pl,993,smtp.poczta.onet.pl,465 -vt.edu,imap.gmail.com,993,smtp.gmail.com,587 -vxempire.xyz,vxempire.xyz,993,vxempire.xyz,587 -waifu.club,mail.cock.li,993,mail.cock.li,587 -wanadoo.fr,imap.orange.fr,993,smtp.orange.fr,465 -wants.dicksinhisan.us,mail.cock.li,993,mail.cock.li,587 -wants.dicksinmyan.us,mail.cock.li,993,mail.cock.li,587 -web.de,imap.web.de,993,smtp.web.de,587 -wit.edu,outlook.office365.com,993,smtp.office365.com,587 -wp.pl,imap.wp.pl,993,smtp.wp.pl,465 -writeme.com,imap.mail.com,993,smtp.mail.com,587 -ya.ru,imap.yandex.com,993,smtp.yandex.com,587 -yahoo.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587 -yahoo.fr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587 -yahoo.gr,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,587 -yandex.by,imap.yandex.com,993,smtp.yandex.com,587 -yandex.com,imap.yandex.com,993,smtp.yandex.com,587 -yandex.kz,imap.yandex.com,993,smtp.yandex.com,587 -yandex.net,imap.yandex.com,993,smtp.yandex.com,587 -yandex.ru,imap.yandex.com,993,smtp.yandex.com,587 -yandex.ua,imap.yandex.com,993,smtp.yandex.com,587 -ymail.com,imap.mail.yahoo.com,993,smtp.mail.yahoo.com,465 -zaclys.net,mail.zaclys.net,993,mail.zaclys.net,465 -zoho.com,imap.zoho.com,993,smtp.zoho.com,465 -zohomail.eu,imap.zoho.eu,993,smtp.zoho.eu,465 -sfr.fr,imap.sfr.fr,993,smtp.sfr.fr,465 diff --git a/gpigeon-template.cgi b/gpigeon-template.cgi index d16bf3b..c513548 100755 --- a/gpigeon-template.cgi +++ b/gpigeon-template.cgi @@ -40,8 +40,6 @@ sub notif_if_defined{ } delete @ENV{qw(IFS PATH CDPATH BASH_ENV)}; -# execute 'printf "yourpassword" | sha256sum' on a terminal -# and copy the long string $ENV{'PATH'} = '/usr/bin'; my $HAS_MAILSERVER = 0; my $SRV_NAME = $ENV{'SERVER_NAME'}; @@ -53,7 +51,7 @@ my $mymailaddr_pw = q{your_mail_address_password_goes_here}; my $mymail_smtp = q{smtp_domain_goes_here}; my $mymail_smtport = q{smtp_port_goes_here}; my $mymail_gpgid = q{gpgid_goes_here}; #0xlong keyid form -my $PASSWD_HASH = q{password_hash_goes_here}; +my $PASSWD_HASH = q{password_hash_goes_here}; #argon2id hash please my $mymailaddr_escaped = escape_arobase($mymailaddr); my $msg_form_char_limit = 3000; my %text_strings = (link_del_ok => 'Successful removal !', @@ -126,7 +124,7 @@ if (argon2id_verify($PASSWD,$PASSWD_HASH)){ for (1..5){ push @mailform_fn_str_buffer, - $random_mailform_fn_str->randregex('\w{1,15}[0-9]{1,15}'); + $random_mailform_fn_str->randregex('\w{64}'); } my $mailform_fn_str_buffer_nospace = join('',@mailform_fn_str_buffer); diff --git a/install.sh b/install.sh deleted file mode 100755 index e7291cd..0000000 --- a/install.sh +++ /dev/null @@ -1,181 +0,0 @@ -# !/bin/sh - -set -o errexit -#set -o pipefail -#set -o nounset -#set -o xtrace - -BOLD='\033[01m' -UNDL='\033[04m' -GREEN='\033[32m' -RED='\033[31m' -STYLE_END='\033[0m' -command -V gpg >/dev/null 2>&1 && GPG="gpg" || GPG="gpg2" -self_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -self_fullpath="$self_dir/$0" -emailre=".\+@.\+\\..\+" - -### EDITABLE VARS ### -# HAS_MAILSERVER: 0 is the default, it'll use an external smtp server (your gmail -# account or ISP subscriber mail address for example) and you'll need to put -# the mail password into the MAIL_PW variable, as well as the smtp server and -# its port (SMTP and SMTP_P var respectively). Change to 1 if you have a local mail -# server. -# TODO: implement the sed trickery to disable and enable portions of perl code -HAS_MAILSERVER=0 -YOUR_EMAIL=0 -GPG_XLONG='0x0000000000000000' # running 'gpg -k --keyid-format 0xlong yourmail@example.com' will -# help you there. -SMTP=0 -SMTP_P=465 -MAIL_PW=0 -SCRIPT="$self_dir/gpigeon.cgi" -GPG_DATA_DIR='/usr/share/www-data' -SCRIPT_USER='www-data' -SCRIPT_GROUP="$SCRIPT_USER" -ROOT_DIR='/var/www/gpigeon' -CGI_DIR="$ROOT_DIR/cgi-bin" -LINKS_DIR="$CGI_DIR/l" -APP_PW=0 -### EDITABLE VARS ### - -self_abort() { - printf "\n${BOLD}${RED}Aborting...${STYLE_END}\n" - exit 1 -} - -list_setupvars() { - printf "\nThis is what has been configured so far:" - printf "\nGpigeon root directory: %s" "$ROOT_DIR" - printf "\nCGI script directory: %s" "$CGI_DIR" - printf "\nGpigeon ownership: %s:%s" "$SCRIPT_USER" "$SCRIPT_GROUP" - printf "\nGpigeon links folder: %s" "$LINKS_DIR" - printf "\nGpigeon GPG homedir: %s" "$GPG_DATA_DIR" - printf "\nGPG public key id: %s" "$GPG_XLONG" - printf "\nYou have a mailserver installed: " - if [ $HAS_MAILSERVER -eq 0 ]; then - printf "${RED}no${STYLE_END}\nMail address: %s\nMail password: %s\nExternal SMTP server and port: %s:%s\n" "$YOUR_EMAIL" "$MAIL_PW" "$SMTP" "$SMTP_P" - else - printf "${GREEN}yes${STYLE_END}\n" - fi - printf "App password: %s\n" "$APP_PW" - printf "\n" - - printf "\nPress any key to continue (CTRL+C to abort)..." - read -} - -__check_setupvars() { - if ! $GPG -k "$GPG_HEX" 2>/dev/null >/dev/null; then - printf "No GPG key pair are related to your email. Create one and launch - this script again." - self_abort - fi - - if ! id $SCRIPT_USER; then - printf "\nThe user ${BOLD}$SCRIPT_USER${STYLE_END} doesn't exist. Edit - ${UNDL}$self_fullpath${STYLE_END} and search - for the ${BOLD}SCRIPT_USER${STYLE_END} variable.\n\n" - self_abort - fi - - if ! getent group $SCRIPT_GROUP; then - echo "The ${BOLD}$SCRIPT_GROUP${END_STYLE} group doesn't exist. Edit $self_fullpath then modify - the SCRIPT_GROUP variable value." - self_abort - fi - - if [ "$APP_PW" -eq "0" ] || [ -z $APP_PW ] ; then - echo "Please edit $0 with a text editor ($EDITOR I guess?) and change the - APP_PW variable." - self_abort - else - PW_LENGTH=$(echo $APP_PW | wc -L) - if [ $PW_LENGTH -le 8 ]; then - echo "Your password is too short, make it lengthier than 8 characters." - self_abort - fi - fi - - # prevent obscure errors with q{$APP_PW} in perl script - APP_PW_SANE="$(echo $APP_PW | sed s/{/\\\\{/g | sed s/}/\\\\}/g)" - - # password checksum'd so no plaintext - HASHED_PASSWORD=$(printf "%s" "$APP_PW" | sha256sum | cut -d' ' -f1) - - if ! echo "$YOUR_EMAIL" | grep "$emailre" >/dev/null; then - printf "\nYour email address is not a valid one. Edit $self_fullpath and - modify the value of the YOUR_EMAIL variable." - fi -} - -setup_gpigeon() { - apt install perl gcc make cpanminus || self_abort - cpanm Digest::SHA Email::Valid String::Random HTML::Entities CGI CGI::Carp Net::SMTP Net::SMTPS GPG || ( printf "\nInstallation of dependencies failed\n" && self_abort ) - - cp $self_dir/gpigeon-template.cgi $SCRIPT - sed "s/password_hash_goes_here/$HASHED_PASSWORD/g" -i $SCRIPT - sed "s/your_mail_address_goes_here/$YOUR_EMAIL/g" -i $SCRIPT - sed "s/your_mail_address_password_goes_here/$YOUR_EMAIL_PW/g" -i $SCRIPT - sed "s/smtp_domain_goes_here/$SMTP/g" -i $SCRIPT - sed "s/smtp_port_goes_here/$SMTP_P/g" -i $SCRIPT - sed "s/gpgid_goes_here/$gpgidlong/g" -i $SCRIPT - if [ $HAS_MAILSERVER -eq 1 ]; then - sed "s/HAS_MAILSERVER=0/HAS_MAILSERVER=1/g" $SCRIPT - cpamn Mail::Sendmail || ( printf "\nInstallation of Mail::Sendmail failed\n" && self_abort ) - fi - - printf "\nCreating static files directory at $ROOT_DIR" - mkdir -p "$ROOT_DIR" || self_abort - printf "\nCopying static files to $ROOT_DIR ..." - cp -r $self_dir/{merci/,index.html,gpigeon.css,favicon.ico} $ROOT_DIR || self_abort - - printf "\n\nCreating script and links directory at $CGI_DIR ..." - mkdir -p {"$CGI_DIR","$LINKS_DIR"} || self_abort - - printf "\nCopying personalized gpigeon.cgi script to $CGI_DIR ..." - cp $SCRIPT $CGI_DIR/ || self_abort - - printf "\nSetting ownership as $SCRIPT_USER:$SCRIPT_GROUP for directory $CGI_DIR ..." - chown $SCRIPT_GROUP:$SCRIPT_USER $CGI_DIR || self_abort - - printf "\nSetting ownership as $SCRIPT_USER:$SCRIPT_GROUP for static directory $ROOT_DIR ..." - chown $SCRIPT_GROUP:$SCRIPT_USER $ROOT_DIR || self_abort - - printf "\nSetting up the GPG directory for the script ..." - if [[ -z $GPG_DATA_DIR ]]; then - mkdir -p /usr/share/www-data/.gnupg - cp -r ~/.gnupg /usr/share/www-data/ - chown $SCRIPT_USER:$SCRIPT_GROUP /usr/share/www-data/.gnupg - chmod 600 /usr/share/www-data/.gnupg - else - mkdir -p $GPG_DATA_DIR - cp -r ~/.gnupg /usr/share/www-data/ - chown $SCRIPT_USER:$SCRIPT_GROUP $GPG_DATA_DIR - chmod 600 $GPG_DATA_DIR - fi - printf "${BOLD}${GREEN}Congrats, we are done!${END_STYLE} You should now manually configure your web server to execute the CGI scripts in the $CGI_DIR folder. Manuals and - official websites for these softwares should help you.\n\n" - exit 0 -} - -_usage_(){ - printf "\n -c checks variables" - printf "\n -l lists variables" - printf "\n -y checks variables and attempts to install gpigeon" - printf "\n -s install gpigeon" - printf "\n -h print this help" - printf "\n\n" -} - -while getopts "clysh" o; do - case "${o}" in - c) __check_setupvars && exit 0;; - l) list_setupvars && exit 0;; - y) __check_vars && setup_gpigeon;; - s) setup_gpigeon;; - h) _usage_;; - #i) interactive_setup;; - *) __check_vars && list_setupvars && setup_gpigeon - esac -done |