problems sending receiving mail on Postfix
I am using SuSe 9.3 and installed Postfix following The Perfect Setup - SUSE 9.3 (Postfix With SMTP-AUTH And TLS )
server1:~ # telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 mail.57.ro ESMTP Postfix
250-AUTH PLAIN LOGIN
Connection closed by foreign host.
It seems to be ok
Ive installed Courier-IMAP/Courier-POP3
My postfix main.cf
server1:~ # postconf -n
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
disable_dns_lookups = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 0
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, mydomain
mydomain = 57.ro
myhostname = mail.$mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_helo_required = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,check_ relay_domains
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
My problem is that I don't know howto add an account like email@example.com,firstname.lastname@example.org,email@example.com etc
Don't know how to add user and password for this accounts
I've searched on Internet but nothing matching with my request was found.
If someone can help me thanks in advance
Have a look here: http://www.howtoforge.com/forums/showthread.php?t=2
please detail like for dummies
Thanks very much I've tried but dont understand
Step 1 OK done it
postconf -e 'home_mailbox = Maildir/'
postconf -e 'mailbox_command ='
useradd -d /home/sample_user -g users sample_user
I dont understand i make a user with the home directory /home/sample_user and group sample_user and the password sample user
Please detail for me like for dummies
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'
Ive made a file virtusertable in /etc/postfix
Made a file local-host-names in /etc/postfix
Inserted in file /etc/postfix/local-host-names domains to accept emails
Inserted in file /etc/postfix/virtusertable
And don't forget to run
solved half of my problems
Now I can receive emails but cannot send
He said he cannot connect to SSL Server.Looking in log mail i found TLS no entropy and I uncomment in master.cf the line
tlsmgr unix n1000? 1tlsmgr
When I try to send emails he can connect to server(TLS conection established TLSv1 RC4-MD5 ,SASL LOGIN authentification failed) but he did not reconigze user and password.
Can you send emails when you connact with plain smtp without TLS?
cannot send Mail with no TLS
I have the same problem SASL conection failed.
I must tell you that I'm running the server behind a router.Everything is configured to work behind the router(DNS,FTP etc and it works).When I receive mail I think there is the same problem he must route packets from Public IP to Private IP.
Thanks anyway for your time and still hope for some help.
What's the exact error message?
Is saslauthd running? Please post the output of
this is ps aux|grep sasl
root 6064 0.0 0.2 4060 1176 ? Ss Mar06 0:00 /usr/sbin/sasla uthd -a pam
root 6103 0.0 0.2 4060 1176 ? S Mar06 0:00 /usr/sbin/sasla uthd -a pam
root 6104 0.0 0.2 4060 1176 ? S Mar06 0:00 /usr/sbin/sasla uthd -a pam
root 6105 0.0 0.2 4060 1176 ? S Mar06 0:00 /usr/sbin/sasla uthd -a pam
root 6106 0.0 0.2 4060 1176 ? S Mar06 0:00 /usr/sbin/sasla uthd -a pam
root 13563 0.0 4.0 34564 20920 ? S Mar06 0:01 kwrite [kdeinit ] kwrite /etc/postfix/sasl_passwd
root 15294 0.0 0.1 1796 636 pts/1 R+ 00:38 0:00 grep sasl
When I maked the user and password I used the following syntax
The account is firstname.lastname@example.org
useradd -d /home/user1 -g users user1
In /home I made a folder user1
I think its that's correct because I can login to IMAP.
Thank you again for your quick response and patience.
I recommend to use vi on the command line to edit files: http://www.howtoforge.com/faq/12_15_en.html
Can you post the exact error message from your mail log?
|All times are GMT +2. The time now is 09:07.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.