many problems:
i have a running debian 8 system, sendmail was installed, i switched to postfix cuz i heard it is "easier", now i wanted the following options:
- the system can send emails. Example: the server is a webserver with a homepage, if someone leaves a message on the homepage an email goes out to my private adress (WORKING)
- the system can receive emails for the domain (admin@myhomepage.com) (WORKING)
- the users can get their emails from outside via via pop3 / imap (WORKING)
- the users can send emails from outside (NOT WORKING)
the users can send emails if they log in to the server via ssh or a webmail systen ON the server ( squirrelmail ) but i never managed to let users use android app
example: if i telnet to my debian server to port 25 SMTP and say
Code: Select all
MAIL FROM:mymail@mail.de
RCPT TO:someone@yahoo.com
next thing is: in my stupidity i started trying around with postfix settings and this:
https://workaround.org/ispmail/jessie/r ... entication
and now my port 25 is totally blocked from outside, i can "nc localhost 25" from inside the system (localhost) but port 25 seems to be open outside, but not reachable / connection refused, like its blocked by a firewall, but it isnt blocked
my settings:
Code: Select all
netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 18734/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 870/mysqld
tcp 0 0 0.0.0.0:13322 0.0.0.0:* LISTEN 386/sshd
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 400/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1/init
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 1144/perl
tcp6 0 0 :::88 :::* LISTEN 1892/apache2
tcp6 0 0 :::443 :::* LISTEN 1892/apache2
tcp6 0 0 :::13321 :::* LISTEN 466/proftpd: (accep
tcp6 0 0 :::13322 :::* LISTEN 386/sshd
tcp6 0 0 :::110 :::* LISTEN 400/dovecot
tcp6 0 0 :::143 :::* LISTEN 1/init
tcp6 0 0 :::80 :::* LISTEN 1892/apache2
tcp6 0 0 :::20 :::* LISTEN 1892/apache2
udp 0 0 0.0.0.0:10000 0.0.0.0:* 1144/perl
Code: Select all
iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-ssh (0 references)
target prot opt source destination
Code: Select all
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = fv-soft.com, localhost, localhost.localdomain, localhost
myhostname = localhost
mynetworks =
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/mailserver.pem
smtpd_tls_key_file = /etc/ssl/private/mailserver.pem
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
i checked that postfix is listening on ALL devices, not only loopback or localhost
i checked firewall settings
i tried to disable TLS for SMTP (no luck, dont know if i know how to disable TLS again )
uninstall / reinstall sendmail ( classic ) and postfix
everything with no luck i can still send email from within the system but cant receive mails anymore nor telnet from a remote machine to myserver : 25