0

I have problem with my postfix or dovecot. i'm trying to create a mail server with postfix, dovecot, roundcube.

but i can send mail to my gmail, but i can't send from gmail to my server.

inside my (/etc/postfix/main.cf)

queue_directory = /var/spool/postfix
mail_owner = postfix
myhostname = hvass7.com
mydomain = hvass7.com
myorigin = /etc/mailname
inet_interfaces = localhost
#mydestination = localhost.$mydomain, localhost, $mydomain
mydestination = localhost, localhost.localdomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 185.10.223.0/26
#relayhost = 
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
recipient_delimiter =
#home_mailbox = Maildir/
home_mailbox =
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/newaliases
mailq_path = /usr/sbin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = no
inet_protocols = ipv4
message_size_limit = 25600000
maximal_queue_lifetime = 1d

biff = no

# Virtual domains, users, and aliases 

virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_maps  = hash:/etc/postfix/virtual/addresses

smtpd_tls_cert_file=/etc/postfix/ssl/mailserver.csr
smtpd_tls_key_file=/etc/postfix/ssl/mailserver.pem
smtpd_use_tls=no
smtpd_tls_auth_only = no
smtpd_client_restrictions =

#Enabling SMTP for authenticated users. 

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = no

smtpd_recipient_restrictions =
   permit_sasl_authenticated,
   permit_mynetworks,
   reject_unauth_destination,
   check_policy_service inet:127.0.0.1:10023n

smtpd_helo_required = yes
smtpd_helo_restrictions =
    permit_mynetworks
    permit_sasl_authenticated
    reject_non_fqdn_helo_hostname
    reject_unknown_helo_hostname

smtpd_sender_restrictions =
   permit_mynetworks
   permit_sasl_authenticated
   reject_unknown_sender_domain
   reject_unknown_reverse_client_hostname
   reject_unknown_client_hostname
   #check_sender_access hash:/etc/postfix/sender_access

smtpd_relay_restrictions =
  permit_mynetworks,
  reject_unauth_destination

virtual_transport = lmtp:unix:private/dovecot-lmtp
compatibility_level = 2
mailbox_size_limit = 0

i have looked in (tail -f /var/log/mail.log) error here:

Aug  6 14:18:20 hvass dovecot: imap-login: Login: user=<postmaster@hvass7.com>, method=PLAIN, rip=::1, lip=::1, mpid=1818, secured, session=<uq/80XGPwLkAAAAAAAAAAAAAAAAAAAAB>
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: Effective uid=5000, gid=5000, home=/var/mail/vhosts/hvass7.com/postmaster
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: Namespace inbox: type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/mail/vhosts/hvass7.com/postmaster
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Debug: maildir++: root=/var/mail/vhosts/hvass7.com/postmaster, index=, indexpvt=, control=, inbox=/var/mail/vhosts/hvass7.com/postmaster, alt=
Aug  6 14:18:20 hvass dovecot: imap(postmaster@hvass7.com): Logged out in=50 out=490

I have looked in my logs, and i can't see nothing.

And i have open port: (https://www.arclab.com/en/kb/email/list-of-smtp-and-pop3-servers-mailserver-list.html)

Can someone help me with that? Thanks :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.