after a week of struggling with postfix i finally manage to configure Dovecat+sasl+postfix i can send and receive emails now the problem that i am facing is i can use sasl for SSL IMAP however i can not secure my SMTP so that no one can send mail bombing and spamming through my mailserver.
i know i can setup smtp with authentication so when every user sends email smtp will authenticate username and password then accept email but i can send email with out authentication. so please guide me for the required facility. actually one of my service provided providing us a mail facility and they are authenticating with the same user ID password for smtp as the credentials are created on main server. so i want to authanticate emails in same way. please help please accept my appology for my poor english here are my details;;; /etc/postfix/main.cf myhostname = mailsrv.example.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = localhost.localdomain, localhost, example.com relayhost = mynetworks = 127.0.0.0/8, 10.51.100.0/24 mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/ inet_protocols = all smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_desti$ /etc/dovecat/dovecat.conf protocols = imap imaps protocol imap { listen = *:143 ssl_listen = *:993 } mail_location = maildir:~/Maildir/ auth default { mechanisms = plain login passdb pam { } userdb passwd { } socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } Thank you,