I have several, small, headless systems (a couple of Beaglebone
Blacks, a couple of Raspberry Pis and some VPS's) where I want to send
any E-Mail for local users off the system to my own E-Mail.

They are all running postfix, versions from 3.4.x to 3.7.x.

They all have a pretty trivial, send-only, main.cf:


    smtpd_banner = $myhostname
    ESMTP $mail_name (Debian/GNU)
    biff = no

    append_dot_mydomain = no


    readme_directory = no

    compatibility_level = 2

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases


    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtp_tls_CApath=/etc/ssl/certs
    smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


    luser_relay=ch...@isbd.co.uk
    myhostname = odin
    myorigin = odin
    mydestination = 
    relayhost = [smtp-auth.mythic-beasts.com]:465
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = loopback-only
    inet_protocols = ipv4
    smtp_sasl_auth_enable = yes
    smtp_tls_wrappermode = yes
    smtp_tls_security_level = encrypt
    smtp_sasl_tls_security_options = noanonymous
    smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
    message_size_limit = 120480000


This particular main.cf is on a Beaglebone Black in France.

/etc/aliases is:-

    postmaster:    root
    root:           ch...@isbd.co.uk
    chris:          ch...@isbd.co.uk

If I send a message to 'chris' (using mailx from the command line), it
gets sent off-site to chris@odin without the aliases being applied.
How do I simply get the aliases to actually do something please?

Oh, here is the mail.log for a message sent to chris:-

    Dec  5 16:34:36 odin postfix/pickup[1823]: 677DFBAD: uid=0 from=<root>
    Dec  5 16:34:36 odin postfix/cleanup[2002]: 677DFBAD: 
message-id=<20231205163436.677DFBAD@odin>
    Dec  5 16:34:36 odin postfix/qmgr[1824]: 677DFBAD: from=<root@odin>, 
size=371, nrcpt=1 (queue active)
    Dec  5 16:34:37 odin postfix/smtp[2004]: 677DFBAD: to=<chris@odin>, 
orig_to=<chris>, relay=smtp-auth.mythic-beasts.com[46.235.227.24]:465, 
delay=0.99, delays=0.16/0.11/0.51/0.21, dsn=2.0.0, status=sent (250 OK 
id=1rAYNY-002U3U-Hf)
    Dec  5 16:34:37 odin postfix/qmgr[1824]: 677DFBAD: removed



-- 
Chris Green
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to