You are not logged in.
Hello world.
Recently i installet postfix dovecot and roundcube following this tutorial -
http://www.howtoforge.com/arch-linux-ma … nd-dovecot
Tutorial is nice and clear but i still have some major problems.
1) why dovecot keeps changing its ports ? from 783 to 143 and then to 993 ? its confusing me.. what if after some restart it changes port again and nobudy can access my server because of incorect port forward ?
2) IMAP Error: Authentication for admin failed (LOGIN): "a001 NO [AUTHENTICATIONFAILED] Authentication failed."
3) after roundcube install on SMTP check i got fsockopen(), but in my php.ini openssl.so is not commented
Trying to send email...
SMTP send: NOT OK(Connection failed: Failed to connect socket: fsockopen(): unable to connect to tls://<mydomain>:25 (Unknown error))
4)configs are taken from tutorial page (changed original, after tutorial)
These are at moment biggest problems, log files are allmost clean, and theres nothing what could lead me to success
i can get emails from every one and send them to every one on the net.. so maybe its only roundcube problem to connect ?
config files
main.cf
myhostname = <mydomain>
#mydomain = <mydomain>
#soft_bounce = no
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myorigin = $myhostname
#myorigin = $mydomain
# RECEIVING MAIL
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
alias_maps = hash:/etc/postfix/aliases
alias_database = $alias_maps
recipient_delimiter = +
home_mailbox = Maildir/
mail_spool_directory = /var/spool/mail
smtpd_banner = $myhostname ESMTP
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/man
# Timeout settings and other limits
delay_warning_time = 4h
unknown_local_recipient_reject_code = 450
minimal_backoff_time = 300s
maximal_backoff_time = 1200s
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
smtp_helo_timeout = 60s
smtpd_soft_error_limit = 3
smtpd_hard_error_limit = 12
# SMTP settings
smtpd_tls_cert_file=/etc/ssl/certs/mail.crt
smtpd_tls_key_file=/etc/ssl/private/mail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache
smtpd_tls_loglevel = 1
smtpd_sasl_auth_enable = yes
#smtp_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
check_policy_service inet:127.0.0.1:993
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
smtpd_sasl_security_options = noanonymous
# Email and mailbox settings
virtual_alias_domains = <mydomain>
virtual_alias_maps = hash:/etc/postfix/virtual
mailbox_size_limit = 0
#misc
biff = no
append_dot_mydomain = no
dovecot.conf
protocols = imap imaps
disable_plaintext_auth = yes
protocol imap {
listen =
#shutdown_clients = yes
#log_path =
#info_log_path =
log_timestamp = "%b %d %H:%M:%S "
#syslog_facility = mail
ssl_listen = *
ssl = yes
ssl_cert_file = /etc/ssl/certs/mail.crt
ssl_key_file = /etc/ssl/private/mail.key
mail_location = maildir:~/Maildir
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
}
protocol lda {
postmaster_address = admin@<mydomain>
#hostname =
}
auth default {
mechanisms = plain login
passdb pam {
#args = dovecot
}
userdb passwd {
#args =
}
user = root
socket listen {
#master {
#path = /var/run/dovecot/auth-master
#mode = 0600
#user = postfix
#group = postfix
#}
client {
path = /var/run/dovecot/auth-client
mode = 0660
user = postfix
group = postfix
}
}
}
dict {
}
tail /var/log/mail.log
Jan 14 22:54:55 sctg dovecot: imap-login: Disconnected (auth failed, 1 attempts): user=<karlis>, method=PLAIN, rip=<my ip>, lip=192.168.0.104, TLS
Jan 14 22:56:41 sctg postfix/qmgr[1959]: 893E4518DF: from=<root@<mydomain>>, size=370, nrcpt=1 (queue active)
Jan 14 22:56:41 sctg postfix/qmgr[1959]: E3A49518E0: from=<root@<mydomain>>, size=19053, nrcpt=1 (queue active)
Jan 14 22:56:41 sctg postfix/qmgr[1959]: 32E52518E8: from=<root@<mydomain>>, size=266969, nrcpt=1 (queue active)
Jan 14 22:57:02 sctg postfix/smtp[2064]: connect to bar.com[64.34.169.140]:25: Connection timed out
Jan 14 22:57:02 sctg postfix/smtp[2064]: 893E4518DF: to=<foo@bar.com>, relay=none, delay=20447, delays=20426/0.07/21/0, dsn=4.4.1, status=deferred (connect to bar.com[64.34.169.140]:25: Connection timed out)
Jan 14 22:57:02 sctg postfix/smtp[2065]: connect to bar.com[64.34.169.140]:25: Connection timed out
Jan 14 22:57:02 sctg postfix/smtp[2066]: connect to bar.com[64.34.169.140]:25: Connection timed out
Jan 14 22:57:02 sctg postfix/smtp[2065]: E3A49518E0: to=<foo@bar.com>, relay=none, delay=20414, delays=20392/0.07/21/0, dsn=4.4.1, status=deferred (connect to bar.com[64.34.169.140]:25: Connection timed out)
Jan 14 22:57:02 sctg postfix/smtp[2066]: 32E52518E8: to=<foo@bar.com>, relay=none, delay=10424, delays=10403/0.1/21/0, dsn=4.4.1, status=deferred (connect to bar.com[64.34.169.140]:25: Connection timed out)
I hope this is enough info for anyone who whould like to help fix my problems.
Waiting for replays.
Karlis.
Offline
Well i managed to get working SquirrelMail .. i can send and recive emails
roundcube is getting bether, teoreticaly i can login, only after login i got "?_task=mail" in browser link and all i see is RC login page
About users and how the login i`m bit disapointed, because i can login SQ with my ssh access on server it self, its kinda dumb if i have postfix admin setup, where i cannot declare users password >.< or i have messed up something terrible and it should not be like so ?
Offline
Well i found out some of my problems... it seems that roundcube and squirrelmail uses system users, not users wich i added with postfix admin help..
what shall i do to manage my users with postfix admin, and so they could not login into server via ssh ? i think its majot security issue.
Karlis.
Offline