I don't understand why these restrictions are being replied to sender domains coming from the outside. Got the authentication working, but now with the sender and recipient restrictions set like that, if I try to send an email in from an outside domain, it immediately gets rejected saying the sender address rejected: access denied. now I remember why I had set the sender and recipient restrictions the way I did to begin with. It helps to understand why these thing behave the way they do in case I have another problem down the road that may be related =p I don't understand why this change I made works, and if anyone can tell me why, I'd like to know. According to, auxprop method only works with plain text passwords, and I'm using encrypted passwords. even though pwcheck_method was set to salsauthd, not aux. So I guess it was trying to use the sql auxprop method. However I removed everything except pwcheck_method: saslauthd and mech_list: plain login, and it works now. Sql_select: SELECT password FROM user WHERE AND enabled = 1 I still have the questions above about the spam but I think I've gotten the authentication required on sending done.Īccording to that guid you set /etc/postfix/sasl/nf to (updated to my database user and password of course): I'm at a loss as to why it won't accept my password for the smtp authentication :( I'm not sure what the crypt=1 at the end means on that line though. etc/pam.d/smtp has the correct database configuration for auth and account. I've confirmed that the /etc/postfix/sasl/nf is set to pw_check=saslauthd, and saslauthd is loading with the -a pam option. However it's rejecting my username and password no matter what I try. Smtpd_recipient_restrictions = permit_sasl_authenticated, rejectĪnd that seems to force it to require authenticaiton. Smtpd_sender_restrictions = permit_sasl_authenticated, reject I changed my sender and recipient restrions to: Ok so I'm pulling my hair trying to figure out this smtp requiring authentication thing. Thanks for any assistance you can provide! If you need more information, just let me know what you need and I'll be happy to provide it. But I would like to be able to weed out the majority of it if possible. It's a inevitable thing that I'm going to receive some spam because I list my contact email addresses on the website for people to send me messages, and spam bots probably can just parse that out. I run an online business and want to make sure I'm not going to miss too many customer emails because of spam rules, but at the same time I've been getting a lot of unrelated spam lately at my current email host that has no spam filter. If a spam message is out right denied delivery (which i think the 2nd level is doing?), is that noted somewhere so that I can see when messages are blocked? I'm assuming it's logged somewhere at least, but not sure where offhand. I'm not sure what exactly is going to happen if a message is flagged as spam level 1? Is it just going to add the ***SPAM*** to the subject and let it continue to my inbox? If so, is there anyway to automatically push these into a spam folder in the inbox? Ifplugin Mail::SpamAssassin::Plugin::ShortcircuitĮndif # Mail::SpamAssassin::Plugin::Shortcircuit OPTIONS="-create-prefs -max-children 5 -helper-home-dir" Qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic Qr'^application/x-msdownload$'i, # block these MIME types Smtpd_tls_session_cache_database = btree:$?$'i, # Windows Class ID CLSID, strict Smtpd_tls_key_file = /etc/ssl/private/smtpd.key Smtpd_tls_cert_file = /etc/ssl/private/smtpd.crt Smtpd_sasl_security_options = noanonymous Smtpd_banner = $myhostname ESMTP $mail_name (Reverse DNS on the IP is configured and such so that checks out when sending messages, etc) I've got all of this working with two domains currently, am able to send and receive emails on them correctly. I will be running multiple domains on this server, each with their own individual users, so I'm doing virtual users and domains. I also configured roundcube to run on the server in order to have webmail access to the emails. I also added postfix.admin () and made some tweaks to all the database queries in order to get it's database structure working correctly. I followed this guide to setup my initial mail server configuration: I'm using Ubuntu Server 12.04 LTS 64 bit. Let me start by stating what I'm running. I've ran plenty of ubuntu based web servers and even a few application servers, but this is the first mail server I'm going to be running myself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |