![]() ![]() What am I doing wrong? Do I need to tweak any other thing? Thanks in advance. Smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination Again open /etc/postfix/main.cf, enter: sudo vi /etc/postfix/main. ![]() # information on enabling SSL in the smtp client. Edit /etc/postfix/main.cf, enter: sudo vi /etc/postfix/main.cf OR sudo nano /etc/postfix/main.cf Set myhostname to FQDN as configured earlier (see fig.03): myhostname. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for Smtpd_tls_session_cache_database = btree:$/smtp_scache Smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key Smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem # Uncomment the next line to generate "delayed mail" warnings Smtpd_banner = ESMTP $mail_name (Ubuntu) Debian 7.1 wheezy 圆486 Postfix 2.9.6-2 dovecot 1:2.1.7-7 While any Debian-based OS should be fine, Postfix is in use in a wide array of versions, including Postfix 1.x, Postfix 2.9, and Postfix 2.10, which have some mutually incompatible settings and features - and using Postfix 2.9, this tutorial is not on the bleeding edge. It is OK to accept defaults initially by pressing return for each. # line of that file to be used as the name. After Postfix installed, configure Postfix use Gmail for SMTP relay. To install Postfix run the following command: sudo apt install postfix. # Debian specific: Specifying a file name will cause the first Here's my main.cf file: # See /usr/share/postfix/main.cf.dist for a commented, more complete version So, after trying a lot, I keep receiving emails with the hostname after the and it's quite frustrating, because I have replaced all the $myhostname variable occurrences in the /etc/postfix/main.cf file with the domain name, but it's as if Postfix doesn't like it and continues sending emails with the hostname attached as domain. I have followed this guide, but I didn't change my hostname to match my domain, because if I can avoid it, I would like to do it. Postfix configuration file: /etc/postfix/main.cf : Configuration options : Anti-spam configuration example Blocking Unsolicited Email. I'm trying to configure Postfix to only send (not receive) emails. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |