Postfix

Konfiguracja serwerów, usług, itp.
chyl-o
Junior Member
Posty: 621
Rejestracja: 24 maja 2006, 21:06
Lokalizacja: Lublin

Post autor: chyl-o »

Jeszcze raz odwołam się do logów poczty: /var/log/mail.log czy masz włączone logowanie w courierze? w plikach konfiguracyjnych służy do tego:

Kod: Zaznacz cały

DEBUG_LOGIN=2
gdzie zamiast 2 mozesz ustawic:

0 - brak debugowania
1 - debugowanie włączone
2 - debugowanie z logowanie haseł
OsUcH
Posty: 33
Rejestracja: 24 lutego 2007, 14:32

Post autor: OsUcH »

w logach mam cos takiego

Kod: Zaznacz cały

Feb 25 14:11:33 localhost postfix/postfix-script: starting the Postfix mail system
Feb 25 14:11:33 localhost postfix/master[23366]: daemon started -- version 2.1.5
Feb 25 14:15:49 localhost imaplogin: Connection, ip=[::ffff:83.18.55.234]
Feb 25 14:15:54 localhost imaplogin: LOGIN FAILED, ip=[::ffff:83.18.55.234]
Feb 25 14:15:59 localhost imaplogin: DISCONNECTED, ip=[::ffff:83.18.55.234], time=10
Feb 25 14:16:22 localhost courierpop3login: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:16:27 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:16:31 localhost courierpop3login: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:16:36 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:16:51 localhost pop3d-ssl: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:16:58 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:16:58 localhost pop3d-ssl: Unexpected SSL connection shutdown.
Feb 25 14:17:04 localhost pop3d-ssl: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:17:09 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:17:10 localhost pop3d-ssl: Unexpected SSL connection shutdown.
Feb 25 14:19:26 localhost pop3d-ssl: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:19:31 localhost pop3d-ssl: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:19:31 localhost pop3d-ssl: Unexpected SSL connection shutdown.
Feb 25 14:19:48 localhost courierpop3login: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:19:53 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:83.17.112.98]
Feb 25 14:19:54 localhost courierpop3login: Connection, ip=[::ffff:83.17.112.98]
Feb 25 14:20:00 localhost courierpop3login: LOGIN FAILED, ip=[::ffff:83.17.112.98]
i nic wiecej. Wlaczylem debug na 2 i nic to samo.
chyl-o
Junior Member
Posty: 621
Rejestracja: 24 maja 2006, 21:06
Lokalizacja: Lublin

Post autor: chyl-o »

wklej pliki konfiguracyjne
OsUcH
Posty: 33
Rejestracja: 24 lutego 2007, 14:32

Post autor: OsUcH »

/etc/postfix/main.cf

Kod: Zaznacz cały

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = localhost.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = rld.one.pl, localhost.localdomain, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/
mailbox_command =
/etc/courier/pop3d

Kod: Zaznacz cały

##VERSION: $Id: pop3d.dist.in,v 1.9 2004/04/18 15:54:39 mrsam Exp $
#
# pop3d created from pop3d.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
#  Copyright 1998 - 2002 Double Precision, Inc.  See COPYING for
#  distribution information.
#
#  Courier POP3 daemon configuration
#
##NAME: PIDFILE:0
#

PIDFILE=/var/run/courier/pop3d.pid

##NAME: MAXDAEMONS:0
#
#  Maximum number of POP3 servers started
#

MAXDAEMONS=40

##NAME: MAXPERIP:4
#
#  Maximum number of connections to accept from the same IP address

MAXPERIP=4

##NAME: AUTHMODULES:0
#
#########################################################################
##
## Authentication modules which attempt to validate userid/password
## combinations.  See authpam(8) for more information.  The default set
## is installed at configuration time.  You may have to edit the following
## to remove unnecessary authentication modules.  In particular, if
## authpam is included in the list below, you will have to remove authpwd
## and authshadow, since their functionality is included in the authpam
## module.
##
#########################################################################
#
# If this is currently set to AUTHMODULES="authdaemon", DO NOT CHANGE IT.
# Instead, change the parameter authmodulelist in authdaemonrc.

AUTHMODULES="authdaemon"


##NAME: AUTHMODULES_ORIG:0
#
# This setting is for use with webadmin

AUTHMODULES_ORIG="authdaemon"

##NAME: DEBUG_LOGIN:0
#
# Dump additional login diagnostics to syslog
#
# DEBUG_LOGIN=0   - turn off login debugging
# DEBUG_LOGIN=1   - turn on login debugging
# DEBUG_LOGIN=2   - turn on login debugging + log passwords too
#
# Note that most information is sent to syslog at level 'debug', so
# you may need to modify your /etc/syslog.conf to be able to see it.

DEBUG_LOGIN=2

##NAME: POP3AUTH:1
#
# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
# variable:
#
# POP3AUTH="LOGIN"
#
# If you have configured the CRAM-MD5 or CRAM-SHA1, set POP3AUTH to something
# like this:
#
# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"

POP3AUTH=""

##NAME: POP3AUTH_ORIG:0
#
# For use by webadmin

POP3AUTH_ORIG="LOGIN CRAM-MD5 CRAM-SHA1"

##NAME: POP3AUTH_TLS:1
#
# To also advertise SASL PLAIN if SSL is enabled, uncomment the
# POP3AUTH_TLS environment variable:
#
# POP3AUTH_TLS="LOGIN PLAIN"

POP3AUTH_TLS=""

##NAME: POP3AUTH_TLS_ORIG:0
#
# For use by webadmin

POP3AUTH_TLS_ORIG="LOGIN PLAIN"
##NAME: PORT:1
#
# Port to listen on for connections.  The default is port 110.
#
#  Multiple port numbers can be separated by commas.  When multiple port
#  numbers are used it is possibly to select a specific IP address for a
#  given port as "ip.port".  For example, "127.0.0.1.900,192.68.0.1.900"
#  accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
#  The ADDRESS setting is a default for ports that do not have a specified
#  IP address.

PORT=110

##NAME: ADDRESS:0
#
# IP address to listen on.  0 means all IP addresses.

ADDRESS=0

##NAME: TCPDOPTS:0
#
# Other couriertcpd(1) options.  The following defaults should be fine.
#

TCPDOPTS="-nodnslookup -noidentlookup"

##NAME: POP3DSTART:0
#
# POP3DSTART is not referenced anywhere in the standard Courier programs
# or scripts.  Rather, this is a convenient flag to be read by your system
# startup script in /etc/rc.d, like this:
#
#  . /etc/courier/pop3d
#  case x$POP3DSTART in
#  x[yY]*)
#        /usr/lib/courier/pop3d.rc start
#        ;;
#  esac
#
# The default setting is going to be NO, until Courier is shipped by default
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.
POP3DSTART=YES

##NAME: MAILDIRPATH:0
#
# MAILDIRPATH - directory name of the maildir directory.
#
MAILDIRPATH=Maildir


[ Dodano: 2007-02-25, 16:35 ]
poradzielm sobie juz sam odinstalowame imapa aa zainstalowalem solid-pop3d i dziala wszystko pieknie :)
ODPOWIEDZ