Score:0

Can't find SMTP settings for postfix

sk flag

Our web application running on Centos7 has PHP and Perl scripts that send emails. We are switching from Gmail -- we are using it as a relay -- to MS360, and I presume that I need to change our SMTP settings/credentials somewhere, but I don't know where. The scripts and their configuration files don't contain the settings. I've looked at the files mentioned in the postfix documentation:

/etc/postfix/main.cf
/etc/postfix/master.cf

... and neither of them contain "smtp.gmail.com" or anything else that appears to be typical SMTP settings. I've executed ...

postconf

... and that doesn't provide specific SMTP settings either.

Where do I find the SMTP settings on these servers?

Note: I don't know much about email configurations, and I inherited this situation. I truly appreciate your assistance.

Many thanks,

David

cn flag
Bob
Postfix may simply send the mails directly, without using a relay and there is nothing that needs changing when your mail service moves away from Gmail
jp flag
Send an email through your scripts and then check its headers
David.Woosley avatar
sk flag
Bob, is there some way I can determine whether that is the case? When we flip the switch from Gmail to MS360, I can't afford for email to be offline. We send thousands of alerts and monthly statements every day. Many thanks.
David.Woosley avatar
sk flag
I edited the original post to point out that we use Gmail as a relay.
another victim of the mouse avatar
cf flag
let's try something different. can you add the output of `grep -r -i smtp.gmail.com /etc` but use your confirmed SMTP address/IP as the search string? This is where I would start looking. Postfix (and sendmail) tend to operate under the assumption that they THEMSELVES are the mail relay server.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.