Vivek Agrawal a écrit : > Hello sir, > Actually I know we can use postfix for sending mails. But I don't > know can we use postfix to receive mails also. Or do we need to configure > some extra tools. > > Initially I was using postfix with getmail tool. Through postfix I > was sending mail using "sendmail -t" command. And I was using getmail to > receive mails from the same gmail account. And have written a small java > code which parse that incoming mail and store it in database. But here my > query was , why we are using postfix. I can use other simple java api to > send mails. why postfix. >
for queue mgmt: if the connection to the remote server fails, or if any other problem prevents you from sending the message to the remote server, then postfix will keep the message in the queue and retry later. To do this in your java application requires work and skills. it is wiser to minimise the code that you write and integrate with components that are know to be secure, robust, correct, ... etc. > One more thing I would like to mention over here is that I am using gmail > account just for learning purpose. In future I will use my own domain name. > then you need an MTA, and postfix is an excellent choice.