1 (edited by hata_ph 2010-10-26 18:39:04)

Topic: [SOLVED] Allow SMTP from another server in iRedMail?

I am testing a email server with perdition pop/imap server to access email from another server at my ISP. It work and I would like to use my local iRedMail server for the SMTP sending. But I can only send email to users in my iRedMail server using the perdition server. Is there a way to allow SMTP sending to other email as well?

Oct 26 11:01:56 mail postfix/smtpd[7405]: A7AA3AFC8A: client=unknown[192.168.4.87]
Oct 26 11:01:56 mail postfix/smtpd[7405]: A7AA3AFC8A: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:01:56 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:07 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 03:02:07 mail policyd: rcpt=726, whitelist=update, host=192.168.4.87 (unknown), from=xxx@fatimah.com.my, to=xxx@hfatimah.no-ip.org, size=0
Oct 26 11:02:07 mail postfix/smtpd[7405]: 3E371AFC8A: client=unknown[192.168.4.87]
Oct 26 11:02:07 mail postfix/cleanup[7347]: 3E371AFC8A: message-id=<1288062472.2740.4.camel@xxx>
Oct 26 11:02:07 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:07 mail postfix/qmgr[7163]: 3E371AFC8A: from=<xxx@fatimah.com.my>, size=597, nrcpt=1 (queue active)
Oct 26 11:02:15 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:15 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:15 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:17 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:17 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:17 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:18 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:18 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:18 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:19 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:19 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:19 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:20 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:20 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:20 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:21 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:21 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:21 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:22 mail postfix/smtpd[7405]: connect from unknown[192.168.4.87]
Oct 26 11:02:22 mail postfix/smtpd[7405]: NOQUEUE: reject: RCPT from unknown[192.168.4.87]: 554 5.7.1 <xxx@hotmail.com>: Relay access denied; from=<xxx@fatimah.com.my> to=<xxx@hotmail.com> proto=ESMTP helo=<[192.168.4.87]>
Oct 26 11:02:22 mail postfix/smtpd[7405]: disconnect from unknown[192.168.4.87]
Oct 26 11:02:22 mail postfix/smtpd[7420]: connect from xxx[127.0.0.1]
Oct 26 11:02:22 mail postfix/smtpd[7420]: 44BE0AFD06: client=xxx[127.0.0.1]
Oct 26 11:02:22 mail postfix/cleanup[7347]: 44BE0AFD06: message-id=<1288062472.2740.4.camel@xxx>
Oct 26 11:02:22 mail postfix/smtpd[7420]: disconnect from xxx[127.0.0.1]

iRedMail = xxx@hfatimah.no-ip.org
perdition = xxx@fatimah.com.my

I can send email from my perdition server to xxx@hfatimah.no-ip.org but not xxx@hotmail.com or xxx@fatimah.com. It is something to do with the smtpd_recipient_restrictions in /etc/postfic/main.cf?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] Allow SMTP from another server in iRedMail?

I have solve it by add my perdition server to mynetwork section under main.cf... smile

3

Re: [SOLVED] Allow SMTP from another server in iRedMail?

Would you mind sharing perdition setup with iRedMail? do you use it for load balance?

4 (edited by hata_ph 2010-10-28 15:57:13)

Re: [SOLVED] Allow SMTP from another server in iRedMail?

No...use it to download email from my email provider. This is how i can make it using ubuntu server.

1. sudo apt-get update
2. sudo apt-get upgrade
3. sudo apt-get install perdition mc htop postfix

# enable or disable pop3 or other service
4. sudo mcedit /etc/default/perdition

RUN_PERDITION=yes
POP3=yes #ou yes
POP3S=no #ou yes
IMAP4=no #ou yes
IMAP4S=no #ou no

# create the file if not
5. sudo mcedit /etc/perdition/perdition.pop3.conf

outgoing_server $ SERVER $
outgoing_port 110

# add your server IP to mynetworks, if not it will show relay access deny
6. sudo mcedit /etc/postfix/main.cf

mynetworks = 127.0.0.0/8 192.168.0.0/16

# optional: enable firewall
7. sudo ufw enable
8. sudo ufw allow openssh
9. sudo ufw allow 110
10. sudo ufw allow 25

PS: This is the basic configuration of perdition and postfix...I think it will take more time and study to make it more safe...