Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Used software: postfix dovecot-imapd dovecot-pop3d policyd-weight
I can send an eMail from my smartphone with a email address of this eMail server, but I can't receive eMails over my IMAP server. I'm always getting the error, that I can't reach the IMAP server.
Can somebody tell me, what've done wrong?
I want to be able to send eMails to every possible eMail address and receive from every possible eMail address (but no spam!).
Following my /etc/postfix/main.cfg:
Quote:
# all information mail goes to postmaster
soft_bounce = no
# tell the postmaster about mail problems
# notify_classes = resource, software, bounce, policy
notify_classes = resource, software, policy
# zum Testen Code 450 (sp?ter erneut versuchen) einstellen
# wenn alles getestet, dann umstellen auf Code 550 (ablehnen)
# unknown_local_recipient_reject_code = 550
unknown_local_recipient_reject_code = 450
# Queue directory and chroot
queue_directory = /var/spool/postfix
# Location of the post* commands
command_directory = /usr/sbin
# Privileges
mail_owner = postfix
# FQDN of the mailserver
myhostname=kraetzig.org
# Domain to serve
mydomain=kraetzig.org
# Aliases für die Systembenutzer
alias_maps = hash:/etc/aliases
# Domain to masquerade as
myorigin = /etc/mailname
# ip addresses to listen on
inet_interfaces = all
# Names to receive email for
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# ip addresses to relay emails for
mynetworks = 127.0.0.0/8
# show mailserver name for all
smtpd_banner = $myhostname ESMTP Mailserver
# tell the postmaster about mail problems
notify_classes = resource, software, policy
# IF a relayhost is used for the connection
# to the internet
# relayhost=[$mail.myprovider]
# how to restrict the delivery of the email
smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:12525
smtpd_sender_restrictions = reject_unknown_address
strict_rfc821_envelopes = yes
home_mailbox = mails/
Can you post telnet results from your phone to your server on port 143?
From your coonection error it seems to be a network issue?
Can you check if any logs are generated when you connect to the server? If no dovecot logs means the connection is not made n there could be sme network issue in which case check firewall else post the logs here
Can you post telnet results from your phone to your server on port 143?
No, I can't. How should that go?
But I logged me on a Linux machine from my work (other location and ip address) in and entered following:
Quote:
$ telnet sueffig.kraetzig.org 143
Trying 87.149.18.110...
Connected to sueffig.kraetzig.org.
Escape character is '^]'.
Connection closed by foreign host.
$ telnet kraetzig.org 143
Trying 87.149.18.110...
Connected to kraetzig.org.
Escape character is '^]'.
Connection closed by foreign host.
$ telnet mail.kraetzig.org 143
telnet: could not resolve mail.kraetzig.org/143: No address associated with hostname
Quote:
Originally Posted by Leo-G
From your coonection error it seems to be a network issue?
Can you check if any logs are generated when you connect to the server? If no dovecot logs means the connection is not made n there could be sme network issue in which case check firewall else post the logs here
I can't find any logfile for dovecot or postfix. I've a port forwarding rule from the router to the server. A real "firewall" isn't available.
I've configured the /etc/dovecot/conf.d/10-loggin.conf, but it doesn't work. I've reloaded and restartet dovecot...
Quote:
$ doveadm log find
Looking for log files from /var/log
Debug: Not found
Info: Not found
Warning: Not found
Error: Not found
Fatal: Not found
Code:
$ cat 10-logging.conf
##
## Log destination.
##
# Log file to use for error messages. "syslog" logs to syslog,
# /dev/stderr logs to stderr.
log_path = /var/log/dovecot.log
# Log file to use for informational messages. Defaults to log_path.
info_log_path = /var/log/dovecot-info.log
# Log file to use for debug messages. Defaults to info_log_path.
debug_log_path = /var/log/dovecot-debug.log
# Syslog facility to use if you're logging to syslog. Usually if you don't
# want to use "mail", you'll use local0..local7. Also other standard
# facilities are supported.
#syslog_facility = mail
##
## Logging verbosity and debugging.
##
# Log unsuccessful authentication attempts and the reasons why they failed.
#auth_verbose = no
# In case of password mismatches, log the attempted password. Valid values are
# no, plain and sha1. sha1 can be useful for detecting brute force password
# attempts vs. user simply trying the same password over and over again.
#auth_verbose_passwords = no
# Even more verbose logging for debugging purposes. Shows for example SQL
# queries.
#auth_debug = no
# In case of password mismatches, log the passwords and used scheme so the
# problem can be debugged. Enabling this also enables auth_debug.
#auth_debug_passwords = no
# Enable mail process debugging. This can help you figure out why Dovecot
# isn't finding your mails.
#mail_debug = no
# Show protocol level SSL errors.
#verbose_ssl = no
# mail_log plugin provides more event logging for mail processes.
plugin {
# Events to log. Also available: flag_change append
#mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
# Available fields: uid, box, msgid, from, subject, size, vsize, flags
# size and vsize are available only for expunge and copy events.
#mail_log_fields = uid box msgid size
}
##
## Log formatting.
##
# Prefix for each line written to log file. % codes are in strftime(3)
# format.
#log_timestamp = "%b %d %H:%M:%S "
# Space-separated list of elements we want to log. The elements which have
# a non-empty variable value are joined together to form a comma-separated
# string.
#login_log_format_elements = user=<%u> method=%m rip=%r lip=%l mpid=%e %c
# Login log format. %$ contains login_log_format_elements string, %s contains
# the data we want to log.
#login_log_format = %$: %s
# Log prefix for mail processes. See doc/wiki/Variables.txt for list of
# possible variables you can use.
#mail_log_prefix = "%s(%u): "
# Format to use for logging mail deliveries. You can use variables:
# %$ - Delivery status message (e.g. "saved to INBOX")
# %m - Message-ID
# %s - Subject
# %f - From address
# %p - Physical size
# %w - Virtual size
#deliver_log_format = msgid=%m: %$
I've resetted my dovecot.conf with the command "dovecot -n > dovecot-new.conf". I've taken the default configuration file.
After testing the openssl, I've found an new error. Maybe it's the only error? I just need an solution for it.
Quote:
$ openssl s_client -prexit -state -debug -connect sueffig.kraetzig.org:imaps
CONNECTED(00000003)
SSL_connect:before/connect initialization
write to 0x8b81470 [0x8b81f30] (121 bytes => 121 (0x79))
0000 - 80 77 01 03 01 00 4e 00-00 00 20 00 00 39 00 00 .w....N... ..9..
0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5............
0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 05 00 ..3..2../.......
0030 - 00 04 01 00 80 00 00 15-00 00 12 00 00 09 06 00 ................
0040 - 40 00 00 14 00 00 11 00-00 08 00 00 06 04 00 80 @...............
0050 - 00 00 03 02 00 80 00 00-ff 68 32 42 ff 26 af a4 .........h2B.&..
0060 - 25 db e1 36 1b b0 aa 8b-41 2d 9f d2 f3 31 44 47 %..6....A-...1DG
0070 - 5b 2f fa 36 84 26 1c 32-f4 [/.6.&.2.
SSL_connect:SSLv2/v3 write client hello A
read from 0x8b81470 [0x8b87490] (7 bytes => -1 (0xFFFFFFFF)) SSL_connect:error in SSLv2/v3 read server hello A
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 121 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.