Giter Site home page Giter Site logo

emailwiz's People

Contributors

aartoni avatar alpha-tango-kilo avatar amnweb avatar aponiatowski avatar appeasementpolitik avatar atechnophobian avatar ayoung012 avatar danielalvsaaker avatar internetdhruv avatar jacobeva avatar jan69 avatar jb2170 avatar kedom1337 avatar laesp avatar lukesmithxyz avatar majestrate avatar mariusurbelis avatar medanisjbara avatar michelangelo136 avatar pellertson avatar pxeger avatar simo981 avatar superpuffin avatar tfasano1 avatar theory-of-everything avatar thmtvz avatar ulisesvina avatar wbehrens-on-gh avatar william-stacken avatar xkcdstickfigure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emailwiz's Issues

Host name is not mail.domain.tld but instead [some-hash].domain.tld

After setting up the mail server successfully (it receives mail perfectly), I find an issue with setting up a client to receive mail. The IMAP host name is not mail.domain.tld as expected. When performing 'get settings' in the mail client the host name is revealed to be [some-hash], in this case dc-7504d2f9df2e.domain.tld.

The hostname shown in postfix.cf is correct: mail.domain.tld. Entering mail.domain.tld as the host name in the mail client with authentication details as specified in the readme results in a timeout error.

This could work fine by simply adding this host to the ssl certificate however I wonder if I made a mistake setting up the server or if there's a simple setting I can change to correct this without recreating my SSL cert.

Can't add @ as hostname for TXT entry on Linode.

Does anybody have any experience making this work on Linode, I can't add the @ to the TXT it says: "Name contains invalid characters"...

Also when I try to login I get: fail

I humbly request your guidance.

DKIM permerror

When sending mail to Gmail it gets put into spam and when I test it using the appmaildev site it says this: "DKIM-Result: permerror (no key)".
I double checked all the TXT entries and everything seems to be fine there.

Strong error in README

You made a typo in the README. It should say I honestly have no really strong preference of Vultr rather then I honestly have to really strong preference of Vultr witch is wat u rote; u dumball

luke plz help me

i just install your "emailwiz" but i get an error wen i wont send emails

ps : i run the script in debian vps hosted in aws
plz help me

i have check logs in /var/log/mail.err and it giv me this

Jun 23 12:04:18 ip-172-31-43-81 spamd[16960]: Can't locate Mail/SpamAssassin/CompiledRegexps/body_0.pm in @INC (you may need to install the Mail::SpamAssassin::CompiledRegexps::body_0 module) (@INC contains: /var/lib/spamassassin/compiled/5.028/3.004002 /var/lib/spamassassin/compiled/5.028/3.004002/auto /usr/share/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 1219) line 1.

script not showing dkim settings when using other subdomain than "mail"

I changed the subdom variable in the script to something other than mail, lets say "mx0"

on the end the script prints the domain record for spf and dmarc, but not for dkim.

cause of this error:
opendkim creates a file named mx0.txt, but mail.txt is expected

possible fix:
change "mail.txt" to "$subdom.txt" in line 275

Emails get sent to spam

On providers like Gmail and Outlook, the email gets sent to spam folder even though they passed the DKIM test. On Posteo, it gets blocked outright by "zen.spamhaus.org" and sent back to me. Now seemingly, Posteo had reported the mail server and now it says "RBL listed" while testing for DKIM. Any solutions?

Working DKIM TXT entry is different now?

I was struggling to get emails to properly show up in Gmail due to DKIM errors with the TXT entry shown at the end of the script. I used the original TXT record in /etc/postfix/dkim/mail.txt and that seemed to fix it (you have to remove the extra lines between quotation marks as well).

What's the "right" way to setup the $maildomain LetsEncrypt certificate?

I'm not really sure how LetsEncrypt works with generating SSL certificates for non-HTTP domains. Since you mention you use Debian web server, does that mean that you're generating the certificate via some default Apache configuration? Or should we use some variant of certbot certonly?

I've found different answers on the web and haven't really found one that didn't look like a hack, so I'm curious how you suggest doing it. Thanks!

Thunderbird failed to find the settings for your email account

Hello, I followed every step of luke's video, but I run it on Ubuntu VPS, domain is from epik. When trying to login to thunderbird I get this: "Thunderbird failed to find the settings for your email account"
It eventually logged me in but it seems I can't receive or send emails, as it just won't connect to the email address. I got this error when running your script. It might be something easy to fix, but I am an absolute beginner. This what I got from the logs. Thanks for any help.

Job for opendkim.service failed because the control process exited with error code.
● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2020-06-22 19:10:58 UTC; 46s ago
Docs: man:opendkim(8)
man:opendkim.conf(5)
man:opendkim-genkey(8)
man:opendkim-genzone(8)
man:opendkim-testadsp(8)
man:opendkim-testkey
http://www.opendkim.org/docs.html
Process: 46286 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=78)

Jun 22 19:10:58 habe systemd[1]: opendkim.service: Control process exited, code=exited, status=78/CONFIG
Jun 22 19:10:58 habe systemd[1]: opendkim.service: Failed with result 'exit-code'.
Jun 22 19:10:58 habe systemd[1]: Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) Milter.
Jun 22 19:10:58 habe systemd[1]: opendkim.service: Scheduled restart job, restart counter is at 5.
Jun 22 19:10:58 habe systemd[1]: Stopped OpenDKIM DomainKeys Identified Mail (DKIM) Milter.
Jun 22 19:10:58 habe systemd[1]: opendkim.service: Start request repeated too quickly.
Jun 22 19:10:58 habe systemd[1]: opendkim.service: Failed with result 'exit-code'.
Jun 22 19:10:58 habe systemd[1]: Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) Milter.

-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- The unit opendkim.service has entered the 'failed' state with result 'exit-code'.
Jun 22 19:13:58 habe systemd[1]: Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) Milter.
-- Subject: A start job for unit opendkim.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- A start job for unit opendkim.service has finished with a failure.

-- The job identifier is 3960 and the job result is failed.
Jun 22 19:13:58 habe spamd[47271]: zoom: able to use 371/372 'body_0' compiled rules (99.731%)
Jun 22 19:13:58 habe systemd-resolved[584]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Jun 22 19:13:58 habe spamd[47271]: spamd: server started on IO::Socket::IP [::1]:783, IO::Socket::IP [127.0.0.1]:783 (running version 3.4.4)
Jun 22 19:13:58 habe spamd[47271]: spamd: server pid: 47271
Jun 22 19:13:58 habe spamd[47271]: spamd: server successfully spawned child process, pid 47275
Jun 22 19:13:58 habe systemd[1]: Started Perl-based spam filter using text analysis.
-- Subject: A start job for unit spamassassin.service has finished successfully
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- A start job for unit spamassassin.service has finished successfully.

-- The job identifier is 3620.
Jun 22 19:13:58 habe spamd[47271]: spamd: server successfully spawned child process, pid 47280
Jun 22 19:13:58 habe useradd[47281]: failed adding user 'dmarc', data deleted
Jun 22 19:13:58 habe spamd[47271]: prefork: child states: II

OpenDKIM fails to start

When running the script on Ubuntu 20.04 LTS, the OpenDKIM service fails to start:

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
     Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2020-06-23 17:14:27 CEST; 56s ago
       Docs: man:opendkim(8)
             man:opendkim.conf(5)
             man:opendkim-genkey(8)
             man:opendkim-genzone(8)
             man:opendkim-testadsp(8)
             man:opendkim-testkey
             http://www.opendkim.org/docs.html
    Process: 251771 ExecStart=/usr/sbin/opendkim -x /etc/opendkim.conf (code=exited, status=78)

Jun 23 17:14:27 example-site systemd[1]: opendkim.service: Scheduled restart job, restart counter is at 5.
Jun 23 17:14:27 example-site systemd[1]: Stopped OpenDKIM DomainKeys Identified Mail (DKIM) Milter.
Jun 23 17:14:27 example-site systemd[1]: opendkim.service: Start request repeated too quickly.
Jun 23 17:14:27 example-site systemd[1]: opendkim.service: Failed with result 'exit-code'.
Jun 23 17:14:27 example-site systemd[1]: Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) Milter.

Under /var/log/mail.log:
postfix/submission/smtpd[252078]: warning: connect to Milter service inet:localhost:12301: Connection refused

It would be great if someone could help me fix this issue.

SpamAssassin Configuration Error

My 512mb RAM Vultr server seems to have issues at the point in the script. sa-compile gives me issues after the script runs.

Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Setting up spamassassin (3.4.2-1+deb10u2) ...
fatal: couldn't execute /usr/bin/gpg: Cannot allocate memory
dpkg: error processing package spamassassin (--configure):
 installed spamassassin package post-installation script subprocess returned error exit status 12
dpkg: dependency problems prevent configuration of sa-compile:
 sa-compile depends on spamassassin; however:
  Package spamassassin is not configured yet.

dpkg: error processing package sa-compile (--configure):
 dependency problems - leaving unconfigured
Processing triggers for ufw (0.36-1) ...
Processing triggers for systemd (241-7~deb10u4) ...
Processing triggers for man-db (2.8.5-2) ...

Trouble connecting after user change

I followed the guide here and on your newest video, here's what I did.

  • I added the proper MX, CNAME records, edited /etc/nginx/sites-available/mail ran certbot and then rebooted nginx giving the nginx 404 error so everything seemed fine there
  • Ran the emailwiz.sh script and added the 3 TXT entries
  • I made a user and was able to connect to it through thunderbird. But then I realized I wanted to make a new user, at this point I ran killall -u <old_user> to end the processes and then userdel -r <old_user> and made a new user (made sure they were in the mail group)
  • I tried logging on via thunderbird and stuck at this prompt, until it finally errors saying unable to log in at server . Probably wrong configuration, Username or Password
    image
  • I tried logging into my server with ssh <new_user>@cuppajoeman.com and provided the same password as I did on thunderbird and logged in fine. In addition I set up mutt wizard, but I got a similar error (I made the settings were exactly as specified on the guide)
    image

At this point I'm a little lost on what I could do next, if anyone has suggestions please let me know!

Messages are not delivered to gmail accounts

I have set this up on debian server. I use thunderbird client. It receives mail fine. But the mails it shows as sent are not delivered to recipients (gmail account holders) not even as spam. I checked the logs and it says connection to google server timed out. Any help on what to do? I do have DKIM TXT record.

How to completely remove all the configurations done by emailwiz and get a fresh start

Hi,
I want to get rid of a previous domain for which i setup the mail server since now I have another domain so looking to start all over on this one.
I did do an apt purge postfix dovecot opendkim spamassassin to remove the packages (I also deleted all the users which i created for the mails) and when i ran the script again however the script didn't give me configuration options and just gave me back the TXT records.
If anyone can help would be appreciated. Thanks fellas!

Can not send email to gmail and other emails

If we create two users on server then they can receive and send emails. Also emails from gmail are receiving. But Can not send email to gmail and other emails. There is problem with opendkim. sudo service opendkim status show red. And in mail.log its showing connection time out. Instance server: aws ec2 ubuntu 18.04

Configure rDNS

I checked my domain with different email tester and everything looks fine. But still my emails are going to spam (atleast on gmail). I have waited for a week so that domain name gets cleared from spam blacklist.

Upon testing on https://www.mail-tester.com It says:
Delivered to internal network by a host with no rDNS
This may indicate you do not have a rDNS configured for your hostname or the rDNS does not match your sending IP

I same setup as unaboomer.com

Unable to send mail

I followed every step in Luke's latest video on setting up the email server but I couldn't send email at all although I can receive email. I have tried to send to several providers like Gmail, Outlook and Posteo. Even https://appmaildev.com can't detect any email that had been sent.

Unable to receive any mail

Hello set up everything got DKIM working able to send mails to gmail inboxes no spam or anything but unable to receive mails. I followed all steps in the video now however I dont have any mails received when i send them from my other email address.
Also one thing to know when I send from the same email server for example [email protected] to [email protected] this is the message which thunderbird returns An error occurred while sending mail. The mail server responded: 451 4.3.0 <[email protected]>: Temporary lookup failure. Please check the message recipient "[email protected]" and try again.

Any help massively appreciated I am very noob so if I made an oopsie I hope you can point it out. Thank u

Thunderbird won't connect to my server, and the read out from journalctl -xe makes not sense

I ran the emailwiz script on my vultr server running ubuntu 18.04. The script appeared to have worked correctly. I can connect to the domain in my browser and cert bot is working properly. I successfully created a user in the mail group that has a strong password.

When I look up my mail server with mxtoolbox, I get the correct response. The DNS and DMARC record both report being properly published.

It does report that my DMARC policy is not enabled, but I assume that is caused by the script making p=none in my DMARC text record.

So, I t ran journalctl -xe to see what was going wrong. This is what is outputted:

postfix/submission/smtpd["a number"]: connect from unknown[ "my Ip address" ]
postfix/submission/smtpd["a number"]: lost connection after CONNECT from unknown[ "my Ip address" ]
postfix/submission/smtpd["a number"]: disconnect from unknown["my Ip address"]commands=0/0

Everything appears to be working properly, but when I try to connect to the server, it just looses my connection and disconnects. How can I solve this?

IPV6 and SPF

I have recently encountered an issue with the emailwiz script, but I believe this could apply to many different mail setups. Suppose I have the domain "example.com" with the following DNS records:

mail.example.com A 123.456.789.10
@ SPF v=spf1 mx a:mail.example.com -all
@ MX mail.example.com

In most setups this should be fine, however for mail servers where "mail.example.com" might be resolved to IPV6, the SPF verification will fail, potentially resulting in an issue where mail is placed in spam or not sent at all.

I recently discovered this issue when sending to a "gmail.com" address. The issue was resolved by creating an AAAA record as such:

mail.example.com AAAA 1234:5678::910a:bcde:f123:4567

As this isn't an issue specifically with emailwiz, I'm not sure if any changes should be made, but potentially some type of notice near the conclusion of the script so people may make the following changes.

Can Receive Emails But Not Send

Just as the title says. I can receive emails on my new server i setup following Luke's guide but i cannot send for some reason. Any ideas? Pretty sure this has something to do with OpenDKIM.

Can't connect to the mail server

I've installed the script on a fresh debian 10 server ( after I installed the web server domain, like you), now everything works with sendmail, if I send mail to gmail it arrives in the inbox without getting marked as spam, but I cannot connect to my mail via Mozilla Thunderbird or any other software. Tried every single port and ssl setting, checked netstat to see if it was listening, and it was listening on right ports... The installation went without any errors, so I don't know...

SpamAssasin not making mail go to junk

I was having issues with setting up a Patreon account as I was not getting the mail. I did customer support and they told me my mail server was hard bouncing. I disabled Spamassassin and I did not have the issue anymore. Shouldn't spam assassin be making the mail go to the junk folder?
Apologies if this was covered in another issue, but I couldn't find one related to this.

Cannot send email Debian VPS

Although I have done the settings according to the video, I can receive email but cannot send. Not only to gmail but also other emails.

  • In the journalctl -xe it is saying time out.
  • at a point I saw TLS library problem: error:1408A0C1

What steps should I follow? Have no problem with receiving mail.

Problem with reverse DNS

Hi!
Looks like I'm having a problem with rDNS. My VPS is at Vultr and I use Epik Domain Registrar.
I can receive e-mails from other domains and I can send e-mail to myself, but when I try to send to gmail/msn (the ones I tested), it does not get there.

When trying smtp:mydomain.xyz in mxtoolbox, I get everything ok but one:

SMTP Reverse DNS Mismatch | Reverse DNS does not contain the hostname

My reverse DNS at Vultr is set to my-ip-address.mydomain.xyz.
Does anyone know what it can be? I don't get why I have to CNAME mail.mydomain.xyz to mydomain.xyz too.
Thanks! Best regards!

opendkim.service: Can't open PID file /var/run/opendkim/opendkim.pid

Hi. Run emailwiz.sh on

Ubuntu 18.04.3 LTS
CPU model Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
CPU count 1
Total memory 1008848 kB
Total swap 0 kB
Kernel name Linux
Kernel release 4.15.0-101-generic
Kerne version #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020
Architecture x86_64 x86_64

Problem with opendkim

● opendkim.service - OpenDKIM DomainKeys Identified Mail (DKIM) Milter
   Loaded: loaded (/lib/systemd/system/opendkim.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/opendkim.service.d
           └─override.conf
   Active: active (running) since Mon 2020-06-08 16:35:44 UTC; 1h 54min ago
     Docs: man:opendkim(8)
           man:opendkim.conf(5)
           man:opendkim-genkey(8)
           man:opendkim-genzone(8)
           man:opendkim-testadsp(8)
           man:opendkim-testkey
           http://www.opendkim.org/docs.html
  Process: 9799 ExecStart=/usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p inet:8891@localhost (code=exited, status=0/SUCCESS)
 Main PID: 9810 (opendkim)
    Tasks: 6 (limit: 1151)
   CGroup: /system.slice/opendkim.service
           └─9810 /usr/sbin/opendkim -P /var/run/opendkim/opendkim.pid -p inet:8891@localhost

Jun 08 16:35:44 yousite systemd[1]: Stopped OpenDKIM DomainKeys Identified Mail (DKIM) Milter.
Jun 08 16:35:44 yousite systemd[1]: Starting OpenDKIM DomainKeys Identified Mail (DKIM) Milter...
Jun 08 16:35:44 yousite systemd[1]: opendkim.service: Can't open PID file /var/run/opendkim/opendkim.pid (yet?) after start: No such file or directory
Jun 08 16:35:44 yousite opendkim[9810]: OpenDKIM Filter v2.11.0 starting (args: -P /var/run/opendkim/opendkim.pid -p inet:8891@localhost)
Jun 08 16:35:44 yousite systemd[1]: Started OpenDKIM DomainKeys Identified Mail (DKIM) Milter.

How can i fix it?
Thanks!

Cannot send emails (how to fix)

I followed his instructions (vultr server) with the exception that Namecheap has my DNS name. Everything went smoothly and I could receive emails, but not send them. Here's what I had to do to get it working:

1 - After debugging it for a while I noticed in the "journalctl -xe" output a line:

postfix/smtp[1263]: connect bla bla :25: Connection Timed Out

I then checked port 25 using "telnet google.com 25" and it was blocked. I had to put in a ticket to prove to them I was not a Chinese spammer and they unlocked it and everything worked perfectly.

2 - When I was debugging the problem with online MX record testers, they complained about the "CNAME" records he used in the video. Apparently there is some RFC-66613... spec that wants ANAME records. The difference between the CNAME and ANAME, is the ANAME points to your numeric IP address and the CNAME is an alias to your hostname which points to your numeric IP. I don't think the CNAME records were the problem, but whatever, the fix was just some cut and paste.

3 - His GIT readme mentions that you need to set your reverse domain name in the vultr control panel. The test sites did not like "mydomain.wtf", but wanted it to be "mail.mydomain.wtf"

I made the switch because Gmail was blocking my Huawei developer emails (gee I wonder why). They have AI spying on everything you do now, so disconnect from the Borg net while you still can, and support master Luke because you know sooner or later they will take him down to :(

When connecting from Thunderbird it fails the first time and succeeds the second.

Right after installing the script I tried connecting with Thunderbird. When you put in your info and tries to autodetect it works fine (though when I close the non-TLS ports it doesn't auto detect correctly) but the first time it tries to connect it fails. The second time though which happens right after, connects fine. Very weird. My latency to the server is ~140ms.

Solution for multiple domains on one server?

What should I do if I have successfully run emailwiz for one domain but also want to set up another mail domain? Should I just set the variable $domain to "domain.xyz" and let it run? I imagine that would possibly override the current configuration. Has anyone else tried to do this successfully using the script, or will I have to manually set up my second domain?

Thank you.

Using encrypted email storage - encfs?

This is a noob question, but does anyone know what exactly the "encrypted email storage" is that some email providers boast about, and how to set it up on a VPS?

My guess is that they probably just encrypt their hard drives, but maybe it is possible to actually add another layer of encryption by encrypting the folders where emails are stored? I'd probably go with setting up encfs directories and (permanently) mounting them as root. However, I am no expert and don't know if that's a valid approach or if there is anything better.

Can't Connect thunderbird to email server, but I can send it emails

I followed the video and used the script to try to set up my email server. I'm running Ubuntu 18 on a vultr compute instance.

Upon finishing the configuration, I couldn't get Thunderbird to connect to the server. Even when I manually entered the IMAP and SMTP addresses and ports, I still got the "Thunderbird failed to find the settings for your email account" error.

I then tried to send my server an email from a gmail account that I have, and the email went through. So, I can send mail to my server, but I can't log into it.

I'm wondering if there is an issue with my domain server. I'm using Amazon Route 53, but it has never given me any problems before. The only issue I can think of was that Amazon wouldn't let me create a CNAME for my mail server. So, I have 1 MX record named "mail.myserver.com" that points at "mail.myserver.com". And, I have an A record named "mail.myserver.com" that points directly at the IP address of my vultr server.

If there is anymore information that would help with the trouble shooting, just let me know.

Cannot send emails to a remote server

I cannot send emails to remote servers, i can send email to myself and receive emails from others.
i will send logs from journalctl (the snip is my ip)

Jul 01 18:30:43 localhost postfix/smtps/smtpd[20025]: connect from unknown[<snip>]
Jul 01 18:30:43 localhost postfix/smtps/smtpd[20025]: BC45E5B8AF: client=unknown[<snip>], sasl_method=PLAIN, sasl_username=federico.cassano
Jul 01 18:30:43 localhost postfix/cleanup[20030]: BC45E5B8AF: message-id=<[email protected]>
Jul 01 18:30:43 localhost postfix/qmgr[17994]: BC45E5B8AF: from=<[email protected]>, size=1104, nrcpt=1 (queue active)
Jul 01 18:30:43 localhost postfix/smtps/smtpd[20025]: disconnect from unknown[<snip>] ehlo=1 auth=1 mail=1 rcpt=1 bdat=1 noop=1 commands=6
Jul 01 18:31:14 localhost postfix/smtp[20014]: connect to mail.register.it[195.110.124.132]:25: Connection timed out
Jul 01 18:31:14 localhost postfix/smtp[20014]: BC45E5B8AF: to=<[email protected]>, relay=none, delay=30, delays=0.2/0/30/0, dsn=4.4.1, status=deferred (connect to mail.register.it[195.110.124.132]:25: Connection timed out)

every time i try to send an email to anyone (not only [email protected]) it tries to connect to the port 25, could that be the problem?

EDIT:
i might add that i did this on a clean debian 10 install on a linode server.
and i followed the video.
also, i have no firewall rules.

OpenDKIM milter socket issues on ubuntu 2004

Fresh vultr ubtuntu instance. When running the script the opendkim service fails to start.

journalctl gives: systemd[1]: Failed to start OpenDKIM DomainKeys Identified Mail (DKIM) Milter.

Mail.log shows:

Jun 28 18:40:40 guest opendkim[18528]: OpenDKIM Filter v2.11.0 starting (args: -x /etc/opendkim.conf)
Jun 28 18:41:35 opendkim[18528]: OpenDKIM Filter v2.11.0 terminating with status 0, errno = 0
Jun 28 18:56:13 opendkim[1669]: OpenDKIM Filter: unknown socket type smtp
Jun 28 18:56:13 opendkim[1669]: OpenDKIM Filter: Unable to create listening socket on conn smtp
Jun 28 18:56:13 opendkim[1669]: smfi_opensocket() failed

I attempted to manually add the socket inet:12301@localhost to the opendkim config since it seems to me as though the sed command in the script is not applying it as expected. I dont know enough about this to know how or why, just a shot in the dark.

It all works after adding the socket to the opendkim configuration manually.

Asks me to have a https certificate for the subdomain when I already have it.

I have followed the video but I get this error when running the script. I followed every step and https certificates are generated correctly if you go on the site you can clearly see them. The records were added too correctly. This is what it spits out

Installing programs...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
opendkim is already the newest version (2.11.0~alpha-12).
postfix is already the newest version (3.4.10-0+deb10u1).
spamassassin is already the newest version (3.4.2-1+deb10u2).
spamc is already the newest version (3.4.2-1+deb10u2).
dovecot-imapd is already the newest version (1:2.3.4.1-5+deb10u2).
dovecot-sieve is already the newest version (1:2.3.4.1-5+deb10u2).
The following package was automatically installed and is no longer required:
  libgnutls-dane0
Use 'apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Note! You must first have a HTTPS/SSL Certificate for mail.sultangoldencurry.es.

Use Let's Encrypt's Certbot to get that and then rerun this script.

You may need to set up a dummy mail.sultangoldencurry.es site in nginx or Apache for that to work.

Also my vps provider is vultr.
Any help is appreciated.

Curl Error

When you execute the curl command on the README.md file,

curl -LO lukesmith.xyz/emailwiz.sh

It returns "404: Not Found"

You said

on my LARBS.xyz domain

so I tried "larbs.xyz/emailwiz.sh", but that downloaded the html code of larbs.xyz.

error at the start of the installation

I created a website using Luke's video on creating a basic website, following everything exactly(including using the same server host and domain provider) and successfully did that with no problem. I didn't go any further beyond what he did, so nothing is different in my root beyond that. I then went straight to the email server video and had been following along without issue. The problem arises when I get to the step when I actually run the sh script. It gets about 1% of the way through the install, then stops and spits out this error.

Installing programs...
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 dovecot-imapd : Depends: dovecot-core (= 1:2.2.27-3+deb9u5) but it is not going to be installed
 dovecot-sieve : Depends: dovecot-core (= 1:2.2.27-3+deb9u5) but it is not going to be installed
 exim4-base : Depends: exim4-config (>= 4.82) but it is not going to be installed or
                       exim4-config-2
 opendkim : Depends: libopendkim11 (= 2.11.0~alpha-10+deb9u1) but it is not going to be installed
            Depends: liblua5.1-0 but it is not going to be installed
            Depends: libmemcached11 but it is not going to be installed
            Depends: libmemcachedutil2 but it is not going to be installed
            Depends: libmilter1.0.1 (>= 8.14.1) but it is not going to be installed
            Depends: libopendbx1 (>= 1.4.6) but it is not going to be installed
            Depends: librbl1 (>= 2.7.2) but it is not going to be installed
            Depends: libunbound2 (>= 1.4.1) but it is not going to be installed
            Depends: libvbr2 (>= 2.7.2) but it is not going to be installed
            Depends: dns-root-data but it is not going to be installed
 postfix : Depends: ssl-cert but it is not going to be installed
           Depends: postfix-sqlite but it is not going to be installed
 spamassassin : Depends: libhtml-parser-perl but it is not going to be installed
                Depends: libsocket6-perl but it is not going to be installed
                Depends: libsys-hostname-long-perl but it is not going to be installed
                Depends: libnet-dns-perl but it is not going to be installed
                Depends: libnetaddr-ip-perl but it is not going to be installed
                Depends: libhttp-date-perl but it is not going to be installed
                Depends: libmail-dkim-perl but it is not going to be installed
                Recommends: sa-compile but it is not going to be installed
                Recommends: libmail-spf-perl but it is not going to be installed
                Recommends: libio-socket-inet6-perl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 exim4-base : Depends: exim4-config (>= 4.82) but it is not going to be installed or
                       exim4-config-2
 mailutils : Depends: default-mta or
                      mail-transport-agent
 opendkim-tools : Depends: liblua5.1-0 but it is not going to be installed
                  Depends: libmemcached11 but it is not going to be installed
                  Depends: libmemcachedutil2 but it is not going to be installed
                  Depends: libopendbx1 (>= 1.4.6) but it is not going to be installed
                  Depends: libopendkim11 (>= 2.11.0~alpha) but it is not going to be installed
                  Depends: librbl1 (>= 2.7.2) but it is not going to be installed
                  Depends: libunbound2 (>= 1.4.1) but it is not going to be installed
                  Depends: libvbr2 (>= 2.7.2) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Note! You must first have a HTTPS/SSL Certificate for mail.guest.guest.

Use Let's Encrypt's Certbot to get that and then rerun this script.

You may need to set up a dummy mail.guest.guest site in nginx or Apache for that to work.
root@killbotvii-serverhost:~#

I'm not sure what to do. I've tried running 'apt --fix-broken install', which seems to install something, and then run the script again, but then I just get the exact same error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.