Minimun postfix

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Minimun postfix

9acca9
Hello everyone.
We have contracted a mail service and we want to make some changes.
The idea is to install zimbra on a local server of ours and that zimbra take
the mails of the postfix of the contracted service.
To test, we are installing a postfix locally on another server.
(ie zimbra and postfix are installed on different servers and will be
published accessible to the internet with different ip to simulate the
scenario we want).
I wanted to ask if you can give me a hand with the postfix configuration.
For now this is my main.cf file

smtpd_banner = $ myhostname ESMTP $ mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = / etc / ssl / certs / ssl-cert-snakeoil.pem
smtpd_tls_key_file = / etc / ssl / private / ssl-cert-snakeoil.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 the postfix-doc package for
# information on enabling SSL in the SMTP client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
defer_unauth_destination
myhostname = postfix.dominio.org.es
alias_maps = hash: / etc / aliases
alias_database = hash: / etc / aliases
myorigin = / etc / mailname
mydestination = $ myhostname, domain.org.us, localhost.domain.com, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [:: 1] / 128
mailbox_size_limit = 8192000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir /


-------------------------------------------------- --------------

Would I have to modify something else ???
-Add mx records in dns and spf
and to allow access to Zimbra should configure something else in this
configuration?
should I add zimbra's public ip in mynetworks ??
The truth that I do not know if it is Zimbra who enters the postfix to
download the mails or if it is Postfix who sends them to zimbra

Greetings to all and thanks, sorry but I do not know the subject and I'm
just getting soaked (although I was watching many tutorials, but from what I
saw, I guess the tutorials were more extensive than I need).

(i dont speak english)



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

RE: Minimun postfix

Fazzina, Angelo
Hi,
I'm pretty sure you need to
1. Configure  Zimbra
2. Configure Postfix so it accepts mail that is destined for the Zimbra server, whatever domain that is. Then postfix is configured to relay
    The mail to the next hop, which sounds like the Zimbra server from your description of the mail flow.
3. Send a test email and look at your Postfix logs to see the email was accepted and processed to be sent along to the Zimbra server.

Postfix logs are pretty good at telling you what the issue is, so test it.
Good Luck.

-ANGELO FAZZINA

UITS Service Manager:
Spam and Virus Prevention
Mass Mailing
G Suite/Gmail

[hidden email]
University of Connecticut,  UITS, SSG, Server Systems
860-486-9075


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of 9acca9
Sent: Thursday, October 26, 2017 12:34 PM
To: [hidden email]
Subject: Minimun postfix

Hello everyone.
We have contracted a mail service and we want to make some changes.
The idea is to install zimbra on a local server of ours and that zimbra take
the mails of the postfix of the contracted service.
To test, we are installing a postfix locally on another server.
(ie zimbra and postfix are installed on different servers and will be
published accessible to the internet with different ip to simulate the
scenario we want).
I wanted to ask if you can give me a hand with the postfix configuration.
For now this is my main.cf file

smtpd_banner = $ myhostname ESMTP $ mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = / etc / ssl / certs / ssl-cert-snakeoil.pem
smtpd_tls_key_file = / etc / ssl / private / ssl-cert-snakeoil.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 the postfix-doc package for
# information on enabling SSL in the SMTP client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated
defer_unauth_destination
myhostname = postfix.dominio.org.es
alias_maps = hash: / etc / aliases
alias_database = hash: / etc / aliases
myorigin = / etc / mailname
mydestination = $ myhostname, domain.org.us, localhost.domain.com, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [:: 1] / 128
mailbox_size_limit = 8192000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir /


-------------------------------------------------- --------------

Would I have to modify something else ???
-Add mx records in dns and spf
and to allow access to Zimbra should configure something else in this
configuration?
should I add zimbra's public ip in mynetworks ??
The truth that I do not know if it is Zimbra who enters the postfix to
download the mails or if it is Postfix who sends them to zimbra

Greetings to all and thanks, sorry but I do not know the subject and I'm
just getting soaked (although I was watching many tutorials, but from what I
saw, I guess the tutorials were more extensive than I need).

(i dont speak english)



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

Matus UHLAR - fantomas
In reply to this post by 9acca9
On 26.10.17 09:33, 9acca9 wrote:
>We have contracted a mail service and we want to make some changes.
>The idea is to install zimbra on a local server of ours and that zimbra take
>the mails of the postfix of the contracted service.
>To test, we are installing a postfix locally on another server.

AFAIK zimbra includes postfix - can't you use it?

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Microsoft dick is soft to do no harm
Reply | Threaded
Open this post in threaded view
|

RE: Minimun postfix

9acca9
In reply to this post by Fazzina, Angelo
Ok, thanks
"2. Configure Postfix so it accepts mail that is destined for the Zimbra
server, whatever domain that is."

And that would be??

(sorry for my ignorance)



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

9acca9
In reply to this post by Matus UHLAR - fantomas
But we are gonna use zimbra in our private local server, and postfix from the
hosting provider (mail relay provider). We just want probe the mechanism
from zimbra with our local postfix, and later config the hosting provider
(mail relay provider), his postfix.





--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

Viktor Dukhovni
In reply to this post by 9acca9


> On Oct 26, 2017, at 2:39 PM, 9acca9 <[hidden email]> wrote:
>
> "2. Configure Postfix so it accepts mail that is destined for the Zimbra
> server, whatever domain that is."
>
> And that would be??

http://www.postfix.org/BASIC_CONFIGURATION_README.html
http://www.postfix.org/STANDARD_CONFIGURATION_README.html

This list is best suited for *specific* questions.

Broad requests like "design my Postfix deployment" are less likely
to elicit useful feedback.

--
        Viktor.

Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

Matus UHLAR - fantomas
In reply to this post by 9acca9
On 26.10.17 11:39, 9acca9 wrote:
>But we are gonna use zimbra in our private local server,

are you going to send mail to the world and receive it back?
If so, your zimbra (which already contains posftix) should be able to do it
somehow, there's no need to use another postfix instance.

> and postfix from the
>hosting provider (mail relay provider). We just want probe the mechanism
>from zimbra with our local postfix, and later config the hosting provider
>(mail relay provider), his postfix.

if you configure your zimbra properly, you may not need it.

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"The box said 'Requires Windows 95 or better', so I bought a Macintosh".
Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

9acca9
the thing is that i dont want make zimbra public.



--
Sent from: http://postfix.1071664.n5.nabble.com/Postfix-Users-f2.html
Reply | Threaded
Open this post in threaded view
|

Re: Minimun postfix

Matus UHLAR - fantomas
On 27.10.17 07:26, 9acca9 wrote:
>the thing is that i dont want make zimbra public.

well, you don't have to make zimbra public.
it's just enough if you allow smtp in and out.

--
Matus UHLAR - fantomas, [hidden email] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Enter any 12-digit prime number to continue.