Ich versuche, meinen E-Mail-Server auf Aws-Instanz mit Ubuntu zu konfigurieren. dachte mit Postfix zu beginnen. Ich habe Postfix konfiguriert sehr gut und ich bin in der Lage E-Mail von meinem aws Instanz zu meinem Google Mail-Konto zu senden, aber ich habe einige Probleme:Zeige E-Mails in Mutt auf Ubuntu mit Postfix
ich mutt installiert haben die E-Mails zu überprüfen, um meine E-Mail-Server zurückgesendet von meinem gmail-konto oder von jedem konto, wenn ich mutt starte es sagt "/ home/ubuntu/Mail ist kein Postfach." googling sagte Fehler wird einmal Postfix rcvs erste E-Mail entfernt. Aber ich habe eine Antwort (auch separate E-Mail) an die [email protected] (Postfix-Benutzer) und es springt nicht zurück (Zustellungsbericht ist in Gmail Konto okay), das bedeutet, dass E-Mail von meinem rcvd sein müssen postfix user.Ich bin verwirrt, warum Mutt nicht in der Lage ist, die vom Benutzer empfangene E-Mail anzuzeigen. Im Anschluss an die ~/.muttrc:
set mbox_type=Maildir set realname=ubuntu set from [email protected] set use_from = yes set envelope_from = "yes" set sendmail="/usr/bin/Postfix" set spoolfile="~/Mail" set folder="~/Mail" set mask=".*" # set mask="!^\.[^.]" set record="+.Sent" set mbox="~/Mail" set postponed="+.Drafts"
etc/postfix/main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no readme_directory = no smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt smtpd_tls_key_file = /etc/ssl/private/smtpd.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 smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = mydomain.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = mydomain.com mydestination = mydomain.com, etc etc localhost relayhost= mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 51200000 recipient_delimiter = + inet_interfaces = all inet_protocols = all home_mailbox = ~/Mail virtual_alias_maps = hash:/etc/postfix/virtual mailbox_command = smtpd_sasl_local_domain = smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients= yes smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination smtp_tls_security_level = may smtpd_tls_security_level = may smtpd_tls_auth_only = no smtp_tls_note_starttls_offer = yes smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom
- Zweites Problem ist, dass die E-Mail th Ich sende mit dem Absender als Ubuntu.