Menu

postfix setup to gmail alias address

chris
2022-04-28
2022-04-29
  • chris

    chris - 2022-04-28

    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
    We don’t allow questions about professional server or networking-related infrastructure administration on Stack Overflow. You can edit the question so it’s on-topic for Stack Overflow or post a new one on Server Fault.
    Closed 15 hours ago.
    (Private feedback for you)
    Edit question
    Delete question
    I am currently working on setting up Wazuh alerts. I am following the documentation to install Postfix to relay emails on alerts. However, my work email is a gmail alias. For example instead of barry@gmail.com, it is barry@securitycompany.com. I configured the email address and password using the following command: echo [smtp.gmail.com]:587 barry@securitycompany.com:PASSWORD > /etc/postfix/sasl_passwd. However, I do not receive an email. Is there a way to setup postfix to relay emails to my gmail account with an alias (barry@securitycompany.com)?

     
  • GingerDog

    GingerDog - 2022-04-29

    er what?

     
  • Simon Hobson

    Simon Hobson - 2022-04-29

    This doesn't sound like a PostfixAdmin issue.
    This is not a general Postfix help forum - this is for the separate package PostfixAdmin which configures/maintains virtual domains & mailboxes using Postfix (plus MySQL or PostgreSQL, optionally maildrop, and Courier or Dovecot).
    For Postfix help you should head over to postfix.org and check out the Postfix mailing lists.

    I interpret your question as : you are trying to setup something to send emails, you want it to send them to user@company.com, but have them relayed to gmailuser@gmail.com.

    You can do this with or without PostfixAdmin, but you will have some issues. The main one is that unless you have control of the sending domain (and specifically the DPF record for it), then there's a good chance of the emails being rejected as spam. Years ago Google (along with the other big email providers) simply declared such forwarding as "not allowed" and implemented SPF knowing that it would break it.

     

Log in to post a comment.

MongoDB Logo MongoDB