LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-25-2024, 03:01 PM   #1
maddy0
Member
 
Registered: May 2023
Posts: 84

Rep: Reputation: 2
Can't send mail


Thunderbird i get this message, see pic ( i can't upload, nothing work here)
https://ibb.co/N9PQfSQ

Last edited by maddy0; 02-25-2024 at 03:30 PM.
 
Old 02-25-2024, 03:55 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Some details would be helpful. Has mail ever worked or are you setting it up for the first time? Are you trying to send directly to recipient's email server or are you relaying? If direct, do you have a sender domain with forward and reverse DNS and MX record?
 
Old 02-25-2024, 04:34 PM   #3
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Fresh installation of Debian (no firewall), first time, i'm sending directly, yes i think everything is done in the mail service part.
https://ibb.co/Q8zkcML
https://ibb.co/GdgT2Ms
https://ibb.co/R4SnBPT
https://ibb.co/rMmvcQ1
https://ibb.co/XDQnXf7
PLease, tell me what u need to know

Last edited by maddy0; 02-26-2024 at 02:09 AM.
 
Old 02-26-2024, 06:16 AM   #4
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Who want to gain $50 teaching me step by step how to?
 
Old 02-26-2024, 07:33 AM   #5
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by maddy0 View Post
Fresh installation of Debian (no firewall), first time, i'm sending directly, yes i think everything is done in the mail service part.
https://ibb.co/XDQnXf7
It appears you're using a self signed certificate, or one that's not properly assigned for your domain.

Did you confirm the "Security Exception"?

Until that is done, you won't be able to download/send email
 
Old 02-26-2024, 08:41 AM   #6
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
192.168.1.3, the IP for mail.novax.lol, is not a unique, routable address. It is local to the subnet you are on.

You need a fixed, public IP in order to send mail directly. It is much easier to route mail through your ISP's smart host address.

Last edited by smallpond; 02-26-2024 at 08:59 AM.
 
1 members found this post helpful.
Old 02-26-2024, 09:07 AM   #7
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by smallpond View Post
192.168.1.3, the IP for mail.novax.lol, is not a unique, routable address. It is local to the subnet you are on.

You need a fixed, public IP in order to send mail directly. It is much easier to route mail through your ISP's smart host address.
Nice catch, didn't even dawn on me to check....
 
Old 02-27-2024, 02:44 AM   #8
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bitfuzzy View Post
It appears you're using a self signed certificate, or one that's not properly assigned for your domain.

Did you confirm the "Security Exception"?

Until that is done, you won't be able to download/send email
Thanks for answering, yup, now i confirmed, but i got this (see pic)
I entered my login acount pwd, but doesn't worked
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-02-27 09-41-05.png
Views:	10
Size:	16.5 KB
ID:	42599  
 
Old 02-27-2024, 02:50 AM   #9
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by bitfuzzy View Post
Nice catch, didn't even dawn on me to check....
How do you got my ip?
 
Old 02-27-2024, 07:45 AM   #10
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by maddy0 View Post
How do you got my ip?
You provided your domain name

Using host
Code:
bash-5.1$ host novax.lol
novax.lol mail is handled by 0 mail.novax.lol.

bash-5.1$ host mail.novax.lol
mail.novax.lol has address 192.168.1.3
or dig

Code:
bash-5.1$ dig mx novax.lol

; <<>> DiG 9.16.48 <<>> mx novax.lol
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35004
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 2

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: c1c52b2346be61f30100000065dde6ef7b2746c6644ef397 (good)
;; QUESTION SECTION:
;novax.lol.                     IN      MX

;; ANSWER SECTION:
novax.lol.              1540    IN      MX      0 mail.novax.lol.

;; ADDITIONAL SECTION:
mail.novax.lol.         1567    IN      A       192.168.1.3
 
1 members found this post helpful.
Old 02-27-2024, 07:53 AM   #11
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by maddy0 View Post
Thanks for answering, yup, now i confirmed, but i got this (see pic)
I entered my login acount pwd, but doesn't worked
There are several possible causes.

1) Your provided user id and/or password are wrong

2) Your settings are incorrect => https://ibb.co/GdgT2Ms

3) Your mail server authentication configuration is wrong


You might need to go through your server logs to identify where the problem is
 
Old 02-27-2024, 10:36 AM   #12
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Click image for larger version

Name:	Screenshot from 2024-02-27 17-35-00.png
Views:	5
Size:	17.6 KB
ID:	42600
Quote:
Originally Posted by bitfuzzy View Post
There are several possible causes.

1) Your provided user id and/or password are wrong

2) Your settings are incorrect => https://ibb.co/GdgT2Ms

3) Your mail server authentication configuration is wrong


You might need to go through your server logs to identify where the problem is
This is maillog:
Feb 27 09:28:29 fedora dovecot[10301]: submission-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<b/qPz1gSyul/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: submission-login: Disconnected: Aborted login by logging out (no auth attempts in 1 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<vvqPz1gSwOl/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 1 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<nPqPz1gSzK1/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: pop3-login: Disconnected: Aborted login by logging out (no auth attempts in 1 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<rvqPz1gSUoJ/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<FfuPz1gS2q1/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: pop3-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.1.1, session=<TwaQz1gSVoJ/AAAB>
Feb 27 09:28:29 fedora dovecot[10301]: imap-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=fe80::d0ae:d007:7607:df3c, lip=fe80::d0ae:d007:7607:df3c, secured, session=<nSmQz1gSzur+gAAAAA>
Feb 27 09:28:29 fedora dovecot[10301]: submission-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=fe80::d0ae:d007:7607:df3c, lip=fe80::d0ae:d007:7607:df3c, secured, session=<AiqQz1gS2rP+>
Feb 27 09:28:29 fedora dovecot[10301]: pop3-login: Disconnected: Aborted login by logging out (no auth attempts in 0 secs): user=<>, rip=fe80::d0ae:d007:7607:df3c, lip=fe80::d0ae:d007:7607:df3c, secured, session=</SuQz1gS3OD+gAAAAA>
Feb 27 09:28:29 fedora dovecot[10301]: submission-login: Disconnected: Connection closed (no auth attempts in 0 secs): user=<>, rip=fe80::d0ae:d007:7607:df3c, lip=fe80::d0ae:d007:7607:df3c, secured, session=<r0WQz1gS6LP+gAAAAA
postfix send mail, but dont recevive
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2024-02-27 17-39-06.png
Views:	4
Size:	112.5 KB
ID:	42601  

Last edited by maddy0; 02-27-2024 at 10:41 AM.
 
Old 02-27-2024, 04:23 PM   #13
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
I can send mail to me, but outside still doesn't work
Im getting mad
Attached Thumbnails
Click image for larger version

Name:	image.png
Views:	5
Size:	80.4 KB
ID:	42602   Click image for larger version

Name:	Screenshot from 2024-02-27 23-14-08.png
Views:	4
Size:	46.1 KB
ID:	42603  
 
Old 02-27-2024, 09:12 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
1 as above 192.168.X.X is an internal IP ONLY (restricted Class C)
You need a public IP (ie on your router) to send/accept email, so your public DNS needs changing.
Note that many ISPs don't allow this direct from your home unless you have a business ctc or an exception to do this, due to spammers etc.
Also as above you should route through your ISP. Talk to them about mail serving.


2 From your last post, it sounds like you've got your mailserver listening on 127.0.0.1 (localhost), instead of an IP + port 587 that can talk to your router.
The default install usually does this to protect you from being hammered by hackers as soon as the install is done, before you have security etc properly setup.
You can check with
Code:
netstat -tanp

This may help https://www.mailgun.com/blog/email/w...ts-25-465-587/
 
Old 02-29-2024, 06:05 AM   #15
maddy0
Member
 
Registered: May 2023
Posts: 84

Original Poster
Rep: Reputation: 2
Hello chrism01, i'm getting mad with this thing
Well, i changed my ip as static, but i can't ping it, but i can ping my gateway.
root@mail:~# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.878 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=0.719 ms
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=0.832 ms
^C
root@mail:~# ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
^C
--- 192.168.1.8 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3062ms
https://ibb.co/P42DnGB STATIC IP
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq state UP group default qlen 1000
link/ether d8:bb:c1:a3:c6:aa brd ff:ff:ff:ff:ff:ff
inet 192.168.1.8/24 brd 192.168.1.255 scope global noprefixroute enp5s0
valid_lft forever preferred_lft forever
-------------------------------------------------------------------------------------------------------------

netstat -tanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 3558/cupsd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 4125/master
tcp 0 0 192.168.1.8:55102 34.107.243.93:443 ESTABLISHED 5183/firefox-esr
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail.novax.lol mail
cat /etc/hostname
mail.novax.lol
hostname -f
mail.novax.lol
hostname -d
novax.lol

Last edited by maddy0; 02-29-2024 at 07:04 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LAN mail clients cannot send mail (receiving mail is working) rnturn Linux - Server 2 07-22-2015 11:53 PM
[SOLVED] Postfix - I can send mail from my computer; but others can't send to me... djuhl30 Linux - Server 8 10-12-2009 02:34 PM
can mail command be used to send mail onto global mail servers like yahoo etc dale_chip Linux - Newbie 4 08-12-2008 08:33 AM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration