postfix-server-setup's People
Forkers
threatinteltest benheise minkione rvrsh3ll bytecod3r clicknull dasb13st checkymander relotnek team-firebugs m00zh33 bl4ckswan p4nd0rum olivierh59500 adanalvarez eltechno h0k5 bneg amitsquare sunnyneo glenbenson yikez978 gavz vysecurity theabraxas nzaga chrismaddalena shantanu561993 malwar3ninja ro9ueadmin twinvega theworms highmeh 0v3rthr0w grov lexus89 rtpoz kitrinaus phexcom madisettisunil krishnacck cryptocub3 iraqnophobia thered naveenrobo alpah7 oneplush m57 tycx2ry clickera bravest-toaster hsis007 ignitionlab moussa-ball karllll mikelee666 adoreste longtan01 chaosjesus kuustudio austinsonger audenga cynicxer s3cur3th1ssh1t mrjester gh0st0ne kbmorris saisai fourteenminusone mrcakeguy m3g4byt3 dave5623 elultimomon0 skapunker a1r0 superuser5 ishtiaq79 xfreed0m d-sec-net axax002 sigaur n1f2c3 0xfa15e5ec f1r4s sh4d0x00 hazho muhamohsen koolacac dolunay1982 skybulk broosa dserdiuk dbd5 sylviagaytaneh2021 quanth98 khalidelborai huizzli basilevz bahaahassanieh enoolapostfix-server-setup's Issues
DMARC policy tweak?
Hi,
First off, AWESOME work!
I ran into issues sending test emails to my GMail account due to the strict "reject" value of the sp tag in the DMARC record - suggested through the script, also, some checks complained about the lack of rua entry in the record.
You may want to add these as details/comments/hints somewhere.
After these two minor tweaks, this all works like a charm. I can't thank you enough.
Exit IP
What's the intention for the exit if. Is it to gte the value of inet (IP)
extip=$(ifconfig|grep 'Link encap\|inet '|awk '!/Loopback|:127./'|tr -s ' '|grep 'inet'|tr ':' ' '|cut -d" " -f4)
Because the output i got from ubuntu is
netmask
netmask
Package 'postfix-policyd-spf-python' has no installation candidate
apt-get install -qq -y postfix postgrey postfix-policyd-spf-python
will fail for postfix & postgrey since postfix-policyd-spf-python does not exist.
This breaks the mail server section, can be fixed by installing postfix manually like so:
apt-get install -qq -y postfix postgrey
but the python spf part is left out, so a longer term solution is needed.
can't write pid to /var/run/opendmarc.pid: Permission denied
I had the error when trying to start Opendmarc
I had to change
PidFile /var/run/opendmarc.pid
to
PidFile /var/run/opendmarc/opendmarc.pid
then i added this line
chown -R opendmarc:opendmarc /var/run/opendmarc/
Can't ssh to vps after running script
It seems that the script do something to iptables, and port 22 is no longer available. (vps provided by google cloud)
Here's the log.
recolic@RECOLICPC ~/tmp> ssh [email protected]
Welcome to Ubuntu 18.04 LTS (GNU/Linux 4.15.0-1006-gcp x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu May 17 04:45:36 UTC 2018
System load: 0.0 Processes: 98
Usage of /: 13.6% of 24.06GB Users logged in: 1
Memory usage: 10% IP address for ens4: 10.140.0.2
Swap usage: 0% IP address for docker0: 172.17.0.1
* Meltdown, Spectre and Ubuntu: What are the attack vectors,
how the fixes work, and everything else you need to know
- https://ubu.one/u2Know
Get cloud support with Ubuntu Advantage Cloud Guest:
http://www.ubuntu.com/business/services/cloud
* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch
4 packages can be updated.
3 updates are security updates.
Last login: Tue May 15 15:56:06 2018 from 58.19.17.217
Welcome to fish, the friendly interactive shell
recolickeghart@ali-docker-builder ~> ls
agent-demo/ docker/ services/ snap/
recolickeghart@ali-docker-builder ~> curl ^C
recolickeghart@ali-docker-builder ~> wget 'https://github.com/n0pe-sled/Postfix-Server-Setup/raw/master/ServerSetup.sh'
--2018-05-17 04:45:44-- https://github.com/n0pe-sled/Postfix-Server-Setup/raw/master/ServerSetup.sh
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/n0pe-sled/Postfix-Server-Setup/master/ServerSetup.sh [following]
--2018-05-17 04:45:45-- https://raw.githubusercontent.com/n0pe-sled/Postfix-Server-Setup/master/ServerSetup.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.192.133, 151.101.128.133, 151.101.64.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.192.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15747 (15K) [text/plain]
Saving to: ‘ServerSetup.sh’
ServerSetup.sh 100%[=====================================================================================================================================================>] 15.38K --.-KB/s in 0.01s
2018-05-17 04:45:45 (1.27 MB/s) - ‘ServerSetup.sh’ saved [15747/15747]
recolickeghart@ali-docker-builder ~> chmod +x ServerSetup.sh
recolickeghart@ali-docker-builder ~> ./ServerSetup.sh
Please run this script as root
recolickeghart@ali-docker-builder ~> sudo ./ServerSetup.sh
1) Setup SSH 5) Install Mail Server 9) Install IRedMail
2) Debian Prep 6) Add Aliases 10) Quit
3) Ubuntu Prep 7) Get DNS Entries
4) Install SSL 8) Install GoPhish
Server Setup Script - Pick an option: 1
Create a User to ssh into this system securely
Enter your user name: recolic_
Adding user `recolic_' ...
Adding new group `recolic_' (1004) ...
Adding new user `recolic_' (1003) with group `recolic_' ...
Creating home directory `/home/recolic_' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
Try again? [y/N] y
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for recolic_
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Server Setup Script - Pick an option:
1) Setup SSH 5) Install Mail Server 9) Install IRedMail
2) Debian Prep 6) Add Aliases 10) Quit
3) Ubuntu Prep 7) Get DNS Entries
4) Install SSL 8) Install GoPhish
Server Setup Script - Pick an option: 3
Updating and Installing Dependicies
IPv6 Disabled
Changing Hostname
Enter your hostname: 4
The System will now reboot!
Connection to base.tw1.recolic.net closed by remote host.
Connection to base.tw1.recolic.net closed.
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
Enter passphrase for key '/home/recolic/.ssh/id_ecdsa':
recolic@RECOLICPC ~/tmp [130]> ssh [email protected]
Enter passphrase for key '/home/recolic/.ssh/id_ecdsa':
recolic@RECOLICPC ~/tmp [130]> initssh
ssh-agent already inited.
recolic@RECOLICPC ~/tmp [1]> ssh [email protected]
Enter passphrase for key '/home/recolic/.ssh/id_ecdsa':
Received disconnect from 35.194.218.194 port 22:2: Too many authentication failures
Disconnected from 35.194.218.194 port 22
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
Enter passphrase for key '/home/recolic/.ssh/id_ecdsa':
recolic@RECOLICPC ~/tmp [130]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]^C
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ssh [email protected]
ssh: connect to host base.tw1.recolic.net port 22: Connection refused
recolic@RECOLICPC ~/tmp [255]> ping base.tw1.recolic.net
PING base.tw1.recolic.net (35.194.218.194) 56(84) bytes of data.
^C
--- base.tw1.recolic.net ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1018ms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.