LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   postfix configuration (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-configuration-4175493666/)

sachin.davra 02-04-2014 06:19 AM

postfix configuration
 
Hi,

I am new to learning postfix. Is it necessary to configure dovecot for postfix mail server? what if i want to send mail to outside domain?

Can you give me any site where examples of postfix configuration file are available.

Rawcous 02-04-2014 08:05 AM

Hello Sachin,

Postfix (I use Sendmail) is a MTA or Mail Transfer Agent. Postfix can be used for.

1. Taking mail from a client machine and relaying it locally to another internal account mail store, typically /var/spool/mail (dovecot will then deliver it from the mail store to the target client).
2. Taking mail from a client machine and relaying it externally (as you mentioned to an external domain) via your ISP's SMTP server to an external address
3. Processing external mail from an external domain and delivering it to an internal mail store, typically /var/spool/mail (dovecot will then deliver it from the mail store to the target client).

If you wish to delivery incoming mail to a client machine then you will require a POP server such as Dovecot.

In a nutshell Postfix sends/delivers mail to a client mail store, and Dovecot retrieves mail from the client mail store. Another way of looking at it would be, if you were sending a parcel from A to B, Postfix would send the parcel, and Dovecot would deliver it.

I apologise in advance if my explanation is not particularly clear....

As for examples of postfix configs there's hundreds of them out them, a quick search will bring up hundreds. Try http://www.postfix.org/STANDARD_CONF...ON_README.html

Regards,

Rawcous!!

sachin.davra 02-04-2014 08:20 AM

Quote:

Originally Posted by Rawcous (Post 5111217)
Hello Sachin,

Postfix (I use Sendmail) is a MTA or Mail Transfer Agent. Postfix can be used for.

1. Taking mail from a client machine and relaying it locally to another internal account mail store, typically /var/spool/mail (dovecot will then deliver it from the mail store to the target client).
2. Taking mail from a client machine and relaying it externally (as you mentioned to an external domain) via your ISP's SMTP server to an external address
3. Processing external mail from an external domain and delivering it to an internal mail store, typically /var/spool/mail (dovecot will then deliver it from the mail store to the target client).

If you wish to delivery incoming mail to a client machine then you will require a POP server such as Dovecot.

In a nutshell Postfix sends/delivers mail to a client mail store, and Dovecot retrieves mail from the client mail store. Another way of looking at it would be, if you were sending a parcel from A to B, Postfix would send the parcel, and Dovecot would deliver it.

I apologise in advance if my explanation is not particularly clear....

As for examples of postfix configs there's hundreds of them out them, a quick search will bring up hundreds. Try http://www.postfix.org/STANDARD_CONF...ON_README.html

Regards,

Rawcous!!



I got most of your point but just a more i want to know.
1. If i want to configure only postfix, will my server be able to send mail(if user A wants to send mail to user B and vice-versa).
2. What should i configure if i want to send mail to external domain from client A.
3. In what condition do i need to configure Dovecot.
4. In RHCE exam what they ask to configure.

TB0ne 02-04-2014 09:12 AM

Quote:

Originally Posted by sachin.davra (Post 5111164)
Hi,
I am new to learning postfix. Is it necessary to configure dovecot for postfix mail server? what if i want to send mail to outside domain?

No, it's not necessary to configure dovecot for postfix to work. And if you want to send mail to an outside domain, you configure postfix to send mail along to the next relay. This question is much the same as your others:
http://www.linuxquestions.org/questi...on-4175484519/
https://www.linuxquestions.org/quest...2/#post5063637
Quote:

Can you give me any site where examples of postfix configuration file are available.
Start with trying a very basic Google search. Amazingly, just putting "how to configure postfix on red hat linux" into Google pulls up LOTS of how-to guides. Did you try doing that? Reading any of the results?
https://access.redhat.com/site/docum...email-mta.html
https://access.redhat.com/site/docum...OWTO/c108.html
Quote:

Originally Posted by sachin.davra
1. If i want to configure only postfix, will my server be able to send mail(if user A wants to send mail to user B and vice-versa).

..answered by Rawcous with point 1 of his reply.
Quote:

2. What should i configure if i want to send mail to external domain from client A.
A relay host, as explained to you last year in your threads about sendmail, and touched on by Rawcous in point 2 of his reply.
Quote:

3. In what condition do i need to configure Dovecot.
In whatever 'condition' you think you NEED dovecot. Read about what it is/does, and determine for yourself if you need it.
Quote:

4. In RHCE exam what they ask to configure.
..and since discussing the RHCE exam goes against the Red Hat NDA, we cannot/will not answer that. Thread reported to moderators.

colucix 02-04-2014 09:44 AM

Quote:

Originally Posted by sachin.davra (Post 5111226)
4. In RHCE exam what they ask to configure.

As TB0ne pointed out above, the question cannot be permitted here, since it is against the Non Disclosure Agreement (NDA) of Red Hat certification. The NDA is intended to safeguard the integrity of the examination processes. Because the value of RHCE certification rests on accurately assessing the knowledge and skills of examinees, it is in your interest, as well as that of Red Hat, to comply with the terms of the NDA. Therefore, please refrain from ask/answer questions about RHCE exams.

sachin.davra 02-05-2014 01:34 AM

Thanks for all of your answers. i completely agree with you for not asking RHCE exam quetions.

I want to use postfix so that other mail server can use it to relay mail. how can i achieve this task.

like now i am using another mail relay in my company so that my mails can go. but now i want to configure it in postfix at my location. how can i achieve this task. so that another mail server can use my postfix server for relaying mails.

TB0ne 02-05-2014 09:44 AM

Quote:

Originally Posted by sachin.davra (Post 5111826)
Thanks for all of your answers. i completely agree with you for not asking RHCE exam quetions.

I want to use postfix so that other mail server can use it to relay mail. how can i achieve this task.

You 'achieve this task', by reading the how-to guides, and configuring your server. That's it. If all you want to do is have postfix shovel emails along, you will, AGAIN, configure it to be a relay server.
Quote:

like now i am using another mail relay in my company so that my mails can go. but now i want to configure it in postfix at my location. how can i achieve this task. so that another mail server can use my postfix server for relaying mails.
Read the easily-found documentation and any of the how-to guides. Post back if you have a SPECIFIC question/problem.

sachin.davra 02-14-2014 12:16 AM

Quote:

Originally Posted by TB0ne (Post 5112057)
You 'achieve this task', by reading the how-to guides, and configuring your server. That's it. If all you want to do is have postfix shovel emails along, you will, AGAIN, configure it to be a relay server.

Read the easily-found documentation and any of the how-to guides. Post back if you have a SPECIFIC question/problem.

i have not tried it till now. i will post if i will feel any issue.
Thnx all for your help.

TB0ne 02-14-2014 09:33 AM

Quote:

Originally Posted by sachin.davra (Post 5117388)
i have not tried it till now. i will post if i will feel any issue.
Thnx all for your help.

Why, exactly, would you open threads about 'problems', before you even bothered to read the instructions????


All times are GMT -5. The time now is 04:49 AM.