Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.