Alias / smtpd_sender not being utilized in [my] Postfix?

Discussion in 'Server Operation' started by fbeye, Jul 15, 2017.

  1. fbeye

    fbeye New Member


    I am running a Postfix / Dovecot setup and i have everything set the way I want it... for now. Auth through SASL SSL and can receive/send to the Internet.I am just unsure if my aliases and/ or smtpd_sender files are being accessed.

    main.cfg has ;
    alias_maps = hash:/etc/postfix/aliases (I did indeed run postalias aliases)
    smtpd_sender_login_maps = hash:/etc/postfix/sasl_senders (I did postmap smtpd_senders)
    Both have their .db files associated with them.

    My question/concern is that I can put whatEVER I want into them whether or not it has noting to do with the legitimate user I want to be allowed to have access and that user can have access to send. I am wondering if I am misunderstanding the concept of both alias_maps and smtpd_sender or if they are set up wrong or if I have another option enabled that negates them. So basically, user : blah has the ability to send/receive regardless of what I have listed, which doesn't seem like it's working if that's the case.
    Not sure if my or my dovecot configs work in concert with these following settings as well, but here is my main,
    My full is:

    mydomain = (obviously not it)
    myorigin = $mydomain
    inet_interfaces = all
    inet_protocols = ipv4
    mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    mynetworks_style = host
    alias_maps = hash:/etc/postfix/aliases
    meta_directory = /etc/postfix
    shlib_directory = /usr/lib/postfix
    message_size_limit = 10485760
    mailbox_size_limit = 1073741824
    smtpd_sasl_type = dovecot
    smtpd_sasl_path = private/auth
    smtpd_sasl_auth_enable = yes
    broken_sasl_auth_clients = yes
    smtpd_sender_login_maps = hash:/etc/postfix/sasl_senders
    smtpd_sasl_security_options = noanonymous
    smtpd_sasl_local_domain = $myhostname
    smtpd_recipient_restrictions = permit_mynetworks, permit_auth_destination, permit_sasl_authenticated, reject_unauth_destination, reject_sender_login_mismatch
    smtpd_tls_security_level = may
    smtpd_tls_received_header = yes
    smtpd_tls_auth_only = yes
    smtpd_tls_loglevel = 1
    smtpd_tls_cert_file = /etc/ssl/certs/postfixcert.pem
    smtpd_tls_key_file = /etc/ssl/private/postfixkey.pem
    smtpd_use_tls = yes
    Last edited: Jul 15, 2017
  2. fbeye

    fbeye New Member

    Maybe this can simplify things.... my Email server is fully working and only for 2-3 users, myself, and all work fine. Each user is a user account that has access to email.
    With this being said, do I even need an alias / virtual user / maps or the likes for my scenario?


Share This Page