# Config ciphermail gateway

**URL:** <https://community.ciphermail.com/t/config-ciphermail-gateway/866>\
**Category:** General\
**Created:** [October 2, 2023, 3:51am UTC](https://community.ciphermail.com/t/config-ciphermail-gateway/866 "2023-10-02T03:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaivuVN](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@khaivuVN](https://community.ciphermail.com/u/khaivuVN)\
**Post date:** [October 2, 2023, 3:51am UTC](https://community.ciphermail.com/t/config-ciphermail-gateway/866/1 "2023-10-02T03:51:45Z")

</div>

Hello,  
I have configured postfix server, dovecot and ciphermail gateway but I cannot configure mail transfer from mail server to ciphermail gateway.  
Please help me …

---

<div class="post-metadata">

**Author:** ![smguenther](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/smguenther/32/179_2.png) [@smguenther](https://community.ciphermail.com/u/smguenther)\
**Post date:** [October 4, 2023, 6:52am UTC](https://community.ciphermail.com/t/config-ciphermail-gateway/866/2 "2023-10-04T06:52:44Z")

</div>

Hi,  
on the server that is running postfix+dovecot, you have to set “relayhost” in the main.cf to the ip address of the ciphermail gateway.  
An on the Ciphermail gateway you should add the ip of the mail server to the list of trusted networks you can do this in the admin section of the web interface.

Regards,

Stefan
