can't send emails

Discussions about the installation of KeyHelp.
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

can't send emails

Post by tom83 »

Hi,

I've installed on a brand new server, the last version of KeyHelp (20.0), on Ubuntu 18.04.

Problem is that I can't send emails. I already had contact with server provider, and is not blocked anything.

When I try to send email, it goes on Mail Queue, and gives error, for example:
connect to alt4.gmail-smtp-in.l.google.com[172.217.218.27]:25: Connection timed out
I'm using CloudFlare but I've pointed all DNS records (spf, txt, dkim,...).

Do I need to unblock anything in the KeyHelp panel to send emails?

Congratulations to all team.

Thanks.
tom83
Posts: 64
Joined: Thu 22. Aug 2019, 21:33

Re: can't send emails

Post by tom83 »

I've made the exact same new installation Ubuntu 18.04 and last KH version, and now seems to be working.
Not sure what happened, but just worked now.
gustavohellwig
Posts: 11
Joined: Sat 19. Sep 2020, 20:14

Re: can't send emails

Post by gustavohellwig »

tom83 wrote: Wed 19. Feb 2020, 13:53 Hi,

I've installed on a brand new server, the last version of KeyHelp (20.0), on Ubuntu 18.04.

Problem is that I can't send emails. I already had contact with server provider, and is not blocked anything.

When I try to send email, it goes on Mail Queue, and gives error, for example:
connect to alt4.gmail-smtp-in.l.google.com[172.217.218.27]:25: Connection timed out
I'm using CloudFlare but I've pointed all DNS records (spf, txt, dkim,...).

Do I need to unblock anything in the KeyHelp panel to send emails?

Congratulations to all team.

Thanks.
Which VPS provider are you using?
sanxh
Posts: 30
Joined: Tue 12. May 2020, 11:52

Re: can't send emails

Post by sanxh »

Me now using hetzner, I receive but I cannot send email
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: can't send emails

Post by Jolinar »

sanxh wrote: Fri 18. Mar 2022, 20:45 I cannot send email
Logfile entries?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
sanxh
Posts: 30
Joined: Tue 12. May 2020, 11:52

Re: can't send emails

Post by sanxh »

Code: Select all

Received: from localhost (localhost [127.0.0.1])
        by panel.shafiqnoorzai.com (Postfix) with ESMTP id 6C5487EE53
        for <shafiq.noorzai@gmail.com>; Wed, 16 Mar 2022 21:56:54 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at panel.shafiqnoorzai.com
Received: from panel.shafiqnoorzai.com ([127.0.0.1])
        by localhost (panel.shafiqnoorzai.com [127.0.0.1]) (amavisd-new, port 10024)
        with ESMTP id Q1FLHFCq4d08 for <shafiq.noorzai@gmail.com>;
        Wed, 16 Mar 2022 21:56:53 +0000 (UTC)
Received: from panel.shafiqnoorzai.com (localhost [127.0.0.1])
        by panel.shafiqnoorzai.com (Postfix) with ESMTPSA id 8EC4F7EE51
        for <shafiq.noorzai@gmail.com>; Wed, 16 Mar 2022 21:56:53 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shafiqnoorzai.com;
        s=default; t=1647467813;
        bh=agXLDIY2bo0IMSnLUMp62eGDVz3Pe5fSPEdPqrwa3vo=;
        h=Date:From:To:Subject:From;
        b=a8dsvHBOoZnkpZ9Nw+6jyVlUzIqWPkyYFiaWZAopfeSdYrG6N/E2cbfS67z5uIE6R
         tzFzvifaBmcRh18VmipoA0nkoFR7WRNUp64pzLfD/vm+wQh/6wNhXvpICkT8v2kem9
         cckje2OvVbXV10yITf16Bn8VFwQUBw7BLX0ieOwgXzFIW739p6Sm7XIAoemgfyn8u1
         B24CXugnO1QjahrXCL/bzPtReZuI7xfNEwa6k2DBoDGjlEcdK3kwudaLYxzFwTzl12
         +zqj/cVnjUFCPXF251ak2/C81syJ6nr+yRasnz9CTculw/xLT3WJ6rGCuFekJtjrQU
         z7Ehg1HN25o3w==
MIME-Version: 1.0
Date: Thu, 17 Mar 2022 02:26:53 +0430
From: info@shafiqnoorzai.com
To: shafiq.noorzai@gmail.com
Subject: Your mailbox has been setup successfully!
Message-ID: <d75cef7ee58abc5b145fe725f8d182cd@shafiqnoorzai.com>
X-Sender: info@shafiqnoorzai.com
Content-Type: multipart/alternative;
 boundary="=_cb69f65d6193152199a0fb89a8ac2cc2"

Mod-Edit:
Post formatted
Last edited by sanxh on Fri 18. Mar 2022, 21:17, edited 2 times in total.
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: can't send emails

Post by Jolinar »

Sorry, but this is a mail header.
To identify the problem, i need corresponding entries from the log file (mail.log).
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
sanxh
Posts: 30
Joined: Tue 12. May 2020, 11:52

Re: can't send emails

Post by sanxh »

Where Can I find mail.log?
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: can't send emails

Post by Jolinar »

sanxh wrote: Fri 18. Mar 2022, 21:16 Where Can I find mail.log?
Sorry, but you are the administrator of the server. So you must know, where the log files are located.
I think you should have a look in /var/log
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
sanxh
Posts: 30
Joined: Tue 12. May 2020, 11:52

Re: can't send emails

Post by sanxh »

mail.log
(445.03 KiB) Downloaded 134 times
see attach
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: can't send emails

Post by Jolinar »

Do you understand the meaning of "corresponding entries"?
You have provided a complete log file.
These are the corresponding entries for the mail header you specified previously:

Code: Select all

Mar 16 21:56:54 panel postfix/smtpd[10464]: connect from localhost[127.0.0.1]
Mar 16 21:56:54 panel postfix/smtpd[10464]: 6C5487EE53: client=localhost[127.0.0.1]
Mar 16 21:56:54 panel postfix/cleanup[10457]: 6C5487EE53: message-id=<d75cef7ee58abc5b145fe725f8d182cd@shafiqnoorzai.com>
Mar 16 21:56:54 panel postfix/smtpd[10464]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Mar 16 21:56:54 panel postfix/qmgr[10034]: 6C5487EE53: from=<info@shafiqnoorzai.com>, size=2973, nrcpt=1 (queue active)
Mar 16 21:56:54 panel amavis[2388]: (02388-02) Passed CLEAN {RelayedOpenRelay}, [127.0.0.1]:34032 <info@shafiqnoorzai.com> -> <shafiq.noorzai@gmail.com>, Queue-ID: 8EC4F7EE51, Message-ID: <d75cef7ee58abc5b145fe725f8d182cd@shafiqnoorzai.com>, mail_id: Q1FLHFCq4d08, Hits: -0.798, size: 2455, queued_as: 6C5487EE53, 748 ms
Mar 16 21:56:54 panel postfix/smtp[10458]: 8EC4F7EE51: to=<shafiq.noorzai@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.89, delays=0.12/0.01/0.01/0.75, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6C5487EE53)
and these entries say that the mail was sent.
Have you looked in the spam folder of the recipient?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
sanxh
Posts: 30
Joined: Tue 12. May 2020, 11:52

Re: can't send emails

Post by sanxh »

connect to alt2.gmail-smtp-in.l.google.com[173.194.202.27]:25: Connection timed out

But I can receive emails
User avatar
Jolinar
Community Moderator
Posts: 3559
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: can't send emails

Post by Jolinar »

You have several problems in your DNS configuration:
Screenshot_6.png
Please correct this first, then test again.
You can check your new DNS settings at different online services, i.e. -> https://mxtoolbox.com/emailhealth
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
l_fish
Posts: 144
Joined: Tue 15. Aug 2017, 11:49

Re: can't send emails

Post by l_fish »

Jolinar wrote: Fri 18. Mar 2022, 21:53

Code: Select all

Mar 16 21:56:54 panel postfix/smtp[10458]: 8EC4F7EE51: to=<shafiq.noorzai@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.89, delays=0.12/0.01/0.01/0.75, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6C5487EE53)
and these entries say that the mail was sent.
Have you looked in the spam folder of the recipient?
No, it just says that the mail was delivered to a service running locally on the same server on port 10024 (whatever this is). ;)
sanxh wrote: Fri 18. Mar 2022, 22:17 connect to alt2.gmail-smtp-in.l.google.com[173.194.202.27]:25: Connection timed out

But I can receive emails
Since you're using Hetzner: They're blocking outgoing port 25 for the first month (until first invoice is paid) on their cloud servers. Maybe this is the main cause for your problem?
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: can't send emails

Post by 24unix »

l_fish wrote: Sat 19. Mar 2022, 21:37 No, it just says that the mail was delivered to a service running locally on the same server on port 10024 (whatever this is). ;)

Code: Select all

# netstat -luntep|grep 10024
tcp        0      0 127.0.0.1:10024         0.0.0.0:*               LISTEN      116        14023      538/amavisd-new (ma
tcp6       0      0 ::1:10024               :::*                    LISTEN      116        14024      538/amavisd-new (ma
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
Post Reply