Author Topic: Mail Server  (Read 1589 times)

kuldippchavan

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Mail Server
« on: July 12, 2017, 11:03:45 am »
hi friends
i want help regarding Zentyal Mail Server
i configured mail server and internally mail send received working fine but i want to send receive mail to public mail account like gmail, yahoomail how i do.i have registered on godaddy  XXXXXXX.com and my website working. for mail server what i do......

bonkersdeluxe

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Mail Server
« Reply #1 on: July 18, 2017, 10:13:01 am »
Hi,

I have a VM Server. One Zentyal and One a simple Postfix Linux Container.
In Zentyal
Configure under Email -> Allgemein (in english Genereic?) in the smarthost textfield  your Postfix-Server IP.
without username and password. The PostfixServer ist only ab intern relay. Not available from internet.

Here ist my Posftix tutorial

MTA configuration

0. install pakets
 apt-get install libsasl2-modules postfix       // postfix ssl tls verschlüsselung für smtp versand hinzufügen

1. In the Postfix main add rows
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/relaymaps
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
smtp_tls_security_level = encrypt
smtp_generic_maps = hash:/etc/postfix/generic

2. Posftix as relayserver without authentication from own net
in  main.cf add you own net to mynetworks. Example  127.0.0.1 192.168.1.0 Net
   mynetworks = 127.0.0.0/8,192.168.1.0/24
3. Add in the main.cf
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination

4. Create /etc/postfix/sender_canonical file
  joe /etc/postfix/sender_canonical
    Content

    #Emailadresse lokal | Emailadresse beim Provider
    user1@local.lan user1@gmx.de
    user2@local.lan user2@web.de


5.  Create Relayhostmap /etc/postfix/relaymaps
Content
    #Emailadresse lokal | Servername des providers
    user1@gmx.local.lan  [mail.gmx.net]
    user2@web.local.lan  [smtp.web.de]

6. Create SASL Password /etc/postfix/sasl_passwd
    mail.gmx.net    benutzernameprovider:password1
    smtp.web.de     benutzernameprovider:password2

7. the adresses user@gmx.local.lan and/or user@web.local.lan rewrite to real adress in generic map /etc/postfix/generic
   Content
   user@gmx.local.lan user@gmx.de
   user@web.local.lan user@web.de

8. create Postmaps
   postmap /etc/postfix/sender_canonical
   postmap /etc/postfix/relaymaps
   postmap /etc/postfix/sasl_passwd
   postmap /etc/postfix/generic

9. if the main.cf contains inet_interfaces = loopback-only then comment out
   #inet_interfaces = loopback-only

10. Postfix neustarten
   service postfix restart

11. happy sending

Sincerely Bonkersdeluxe

kuldippchavan

  • Zen Apprentice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Mail Server
« Reply #2 on: July 19, 2017, 09:55:58 am »
thanks for reply
actually i just started this task so i am work as beginner. i apply configuration as per your suggestion but i did not get success. can u give me in detail information.

thanks