Skip to main content

Thread: Postfix local delivery location


[background]
have stupid printer scanner copier sends mail when done scan. problem printer can connect port 25 of smtp server (the stupid part). our isp has started blocking port 25 security (spam?) reasons , supposed use port 587.

[preferred solution]
have ubuntu box acting simple firewall/mail server (aggregator) , thinking i'd scanner hand on postfix on local server , have postfix relay isp's server or deliver locally local addresses.

[the setup far]
i'm using dovecot virtual users , getmail retrieve mail mail server (mx). problem telling postfix mailboxes located in case of local delivery.

virtual mailboxes located @ /var/mail/[user]@sample.com/maildir

postfix configuration:
code:
# see /usr/share/postfix/main.cf.dist commented, more complete version   # debian specific:  specifying file name cause first # line of file used name.  debian default # /etc/mailname. #myorigin = /etc/mailname  smtpd_banner = $myhostname esmtp $mail_name (ubuntu) biff = no  # appending .domain mua's job.  # uncomment next line generate "delayed mail" warnings #delay_warning_time = 4h  readme_directory = no  # tls parameters smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache  # see /usr/share/doc/postfix/tls_readme.gz in postfix-doc package # information on enabling ssl in smtp client.  myhostname = sample.com alias_maps = hash:/etc/aliases mailbox_size_limit = 0 recipient_delimiter = + myorigin = /etc/mailname home_mailbox = /maildir/ masquerade_domains = sample.com mydomain = sample.com allow_untrusted_routing = yes inet_protocols = ipv4 append_dot_mydomain = no smtpd_recipient_restrictions = permit_mynetworks  #smtp_sasl_auth_enable = yes relayhost = smtp.myisp.com:587 smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_map smtp_sasl_security_options =
i looked @ using virtual domains, i'm wondering if right approach i'm trying do, thought i'd ask guys first.

i've got far:
if add following postfix main.cf:

code:
virtual_mailbox_domains = sample.com virtual_mailbox_base = /var/mail virtual_mailbox_maps = hash:/etc/postfix/vmailbox virtual_minimum_uid = 8 virtual_uid_maps = static:8 virtual_gid_maps = static:8
code:
info@sample.com    info@sample.com/maildir root@sample.com    root@sample.com/maildir
would theoretically work? i'm little unsure of uid part. mail residing under /var/mail owned mail user uid of 8.

appreciate feedback , insight. in advance.



Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Postfix local delivery location


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues