Looking for advice on Setting up Postfix to pick up form submissions
by 6th_sense from LinuxQuestions.org on (#6QZ1A)
Hi guys,
This is a bit longish.... But, I can't think of a better way to summarize the advice I am looking for.
Problem Overview:
I am trying to get form submissions on my website and some of the output of my cron jobs that check for certain conditions to alert me, when there is a submission, with a small amount of information, or alert me to a problem, if my cron job discovers one.
A Solution I came up with
I thought of simply sending it through email out to myself. However, I need to install postfix/Sendmail - my preference being for postfix.
I found the following web page that describes something quite similar
URL: https://askubuntu.com/questions/5224...g-command-line
The guy who wrote the answer next to 31 -> this seems to be a good workable solution.
Problem:
The problem I see with this solution is that it seems to use an external gmail address to send the email - as opposed to simply forwarding the information in an email to my gmail account - which is what I would like - ie gmail should not be sending this email out - rather it should be receiving the email from my server.
I also have not listed my server in the MX records in DNS. I don't believe that I would need to do so for the purpose I have in mind - because I don't intend to ever receive emails at my server - it is simply a means to let me know what is going on.
Questions:
1. Does anyone have an idea as to whether this will work or not? ie whether I can simply send an email to my gmail account? What is involved in doing this?
2. It mentions using an FQDN like mail.example.com - I actually listed google's servers as the MX record for one of the websites that I wish to have gmail handle email for... But, I wish to forward the emails from my server to that email address - I do happen to have other sites that don't have an MX record listed. (let's call it myfakewebsite.ca to name it). What is my best choice for the FQDN - should I use myfakewebsite.ca - for which I already own the domain?, or should I use a fake website name instead?
- 6th_sense
This is a bit longish.... But, I can't think of a better way to summarize the advice I am looking for.
Problem Overview:
I am trying to get form submissions on my website and some of the output of my cron jobs that check for certain conditions to alert me, when there is a submission, with a small amount of information, or alert me to a problem, if my cron job discovers one.
A Solution I came up with
I thought of simply sending it through email out to myself. However, I need to install postfix/Sendmail - my preference being for postfix.
I found the following web page that describes something quite similar
URL: https://askubuntu.com/questions/5224...g-command-line
The guy who wrote the answer next to 31 -> this seems to be a good workable solution.
Problem:
The problem I see with this solution is that it seems to use an external gmail address to send the email - as opposed to simply forwarding the information in an email to my gmail account - which is what I would like - ie gmail should not be sending this email out - rather it should be receiving the email from my server.
I also have not listed my server in the MX records in DNS. I don't believe that I would need to do so for the purpose I have in mind - because I don't intend to ever receive emails at my server - it is simply a means to let me know what is going on.
Questions:
1. Does anyone have an idea as to whether this will work or not? ie whether I can simply send an email to my gmail account? What is involved in doing this?
2. It mentions using an FQDN like mail.example.com - I actually listed google's servers as the MX record for one of the websites that I wish to have gmail handle email for... But, I wish to forward the emails from my server to that email address - I do happen to have other sites that don't have an MX record listed. (let's call it myfakewebsite.ca to name it). What is my best choice for the FQDN - should I use myfakewebsite.ca - for which I already own the domain?, or should I use a fake website name instead?
- 6th_sense