1

Topic: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version: 0.8.6 with patches for Raspberry Pi (ARM)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Linux/BSD distribution name and version: Raspbian (Debian 6)
- Related log if you're reporting an issue:
====

Hi all,

I'm trying to set up a mail server on a Raspberry Pi running from my home and my 100/10 Mbps (download/upload) broadband.

I've succesfully installled everything and I can use the Roundcube webmail client on the RPi to send emails to any address. Roundcube shows, by the way received mails from inside the machine, I mean, everything that comes from cron jobs (from root@mx.mydomain.com to www-data@mx.mydomain.com) arrives there, although I don't want those messages.

The problem comes when I try to reply to those emails or sent my account there (at the moment is the default one, postmaster@mydomain.com) from outside the Raspberry Pi. I've tried to send those emails from Gmail, and there is even an error shown on Gmail. It's like if the mails were lost in a limbo.

The Raspberry Pi is running from my dinamic IP address, but I use NoIP to be able to access it from remote locations. NoIP has a special field to use MX reccords, and I think I have it set up correctly. On my domain registar, I've got a MX domain:

mx.mydomain.com MX10 mydomain.no-ip.org

And on my NoIP dashboard, I've chosen that subdomain (mx.mydomain.com) as the one that should be used for the mail part, as shown on the attached image.

I've also opened the port for smtp (25) on iptables, that could be a problem, but no difference.

Any hints/tips on why I don't receive any email?

Post's attachments

mx-noip-1.jpg
mx-noip-1.jpg 23.04 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

If you use 'mydomain.com' as mail domain (@mydomain.com in email address), you should add DNS records for 'mydomain.com', not 'mx.mydomain.com'.

3

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Hi Zhang, thanks for replying so quickly.

In fact, I've tried several options. I had mx.mydomain.com in the postfix mail.cnf config file, but I tried to change that and use only mydomain.com. I changed also the NoIP mail field, and verified that in my domain registrar I have the A/MX entries ready (the A entry is in fact a CNAME that points to a no-ip.org subdomain).

I'm affraid the problem persists. I can send email outside, but not receive it.

4

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Are you sure there isn't another firewall in the way between you and the outside world? Maybe in your ADSL router, etc, or the port to receive mail has been forwarded from your ADSL to your Pi? Or possibly even your ISP is blocking it.

Use something like SheildsUp to test what ports are open to the outside world, google 'GRC sheildsup' will get you the right link.

5

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

ricklous wrote:

Are you sure there isn't another firewall in the way between you and the outside world? Maybe in your ADSL router, etc, or the port to receive mail has been forwarded from your ADSL to your Pi? Or possibly even your ISP is blocking it.

Use something like SheildsUp to test what ports are open to the outside world, google 'GRC sheildsup' will get you the right link.

I really don't think so, and as I've said, iptables is fine in the Raspberry Pi afaik. I've checked the router and everything seems fine.

I think the problem lies within the configuration of the NoIP service and maybe my domain registrar.

Is there some guide to configure a server with NoIP (or other dynamic DNS service) as a mail server?

6

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

First, quote again:

If you use 'mydomain.com' as mail domain (@mydomain.com in email address), you should add DNS records for 'mydomain.com', not 'mx.mydomain.com'.

if it doesn't work for you, please show us related log content on your server, and error message.

2: dynamic IP address is REALLY REALLY REALLY bad for mail service. Many public RBL services block dynamic IP addresses.

7

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Thank you Zhang, I read your previous email and tried the DNS change (with mydomain.com) but no luck (or I've done something wrong again). Yes, I've read that dynamic address is not the tipical way to do it, but I can send emails anyway, why can't I receive them?

This is the current answer that Gmail sends me after two days (i've changed the domain):

*******************

This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

     postmaster@mydomain.com

Message will be retried for 2 more day(s)

Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/answ … nswer=7720
[(10) mydomain.no-ip.org. [xxx..xxx.xxx.150]:25: Connection refused]

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=PaxMf6SJn/xNzy6OFjX6SArz9nsRtDuaxs8UoagN1dQ=;
        b=In/2Xr6yyJY6SAkx8gwVGMhmFhLZEQ7ZLmntURddZE0jRjBBeC2ul+UlM3U+vHR/9y
         qAKMRYflm26n2BjLGdJSNkbGQoPojMoCa3lEP4Duf8ccY14xTFevFSjOwfNjojZ+4Sh3
         1fa0s0Q6DajyJXt3IQczrwvYhuuHIfBBTKMkRUpqMe0wFaYAujbgrUpRRQmQZPZlorea
         FTBYNgCqe2e93WdraqTbHhFJ4Ms/cTxFaO+nWNjv9wHR2whgkLmty89IfbwxvktcCESC
         imfMFnA/tCmI2N+Yq9azDVxxxxsxsxsxsxsxsxsxxssxsxsxsxsxsxsxsxsxsxsxsxsxsxsxsxsxs
         Hz+g==
X-Received: by 10.60.51.4 with SMTP id g4mr1102643oeo.52.1397562712418; Tue,
15 Apr 2014 04:51:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.226.194 with HTTP; Tue, 15 Apr 2014 04:51:32 -0700 (PDT)
In-Reply-To: <6616db4bede973891206aa0a0858ae6c@mydomain.com>
References: <6616db4bede973891206aa0a0858ae6c@mydomain.com>
From: Me <me@gmail.com>
Date: Tue, 15 Apr 2014 13:51:32 +0200
Message-ID: <CAHN2bfs4hfQzae=L+V6D3LCz8qt-iRgEhyH+7Q16WKvixbX=FA@mail.gmail.com>
Subject: Re: Probando
To: postmaster@mydomain.com
Content-Type: multipart/alternative; boundary=001a11c304a406754504f7136da0

**************

Maybe this could be useful to detect the problem I guess there's nothing at /etc/log/mail that could be useful if the mail doesn't get there in the first place, isn't it?

Regards!

8

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

javipas wrote:

[(10) mydomain.no-ip.org. [xxx..xxx.xxx.150]:25: Connection refused]

Is smtp service (Postfix) running on your server? Or does your ISP block port 25?

9

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

ZhangHuangbin wrote:
javipas wrote:

[(10) mydomain.no-ip.org. [xxx..xxx.xxx.150]:25: Connection refused]

Is smtp service (Postfix) running on your server? Or does your ISP block port 25?

Postfix is indeed running, and the port is opened on iptables, so maybe it's an ISP blocking issue... I'll try to contact them, but I know this is the main problem with this kind of setups. ISP have to try to avoid spammers, and I understand if they detect something strange, they block that to avoid more problems.

I'll let you know if I make some progress on this, thanks!

10 (edited by javipas 2014-04-25 03:27:28)

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

After several attemps, and I almost surrendered, but then today I started to try things again and, strange enough, I can receive mail at my Raspberry.

The problem now is that I can't send any mail. As soon as I try, I get an "Undelivered Mail Returned to Sender" that lets mw know that my mail is considered as spam. The text is as follows:

This is the mail system at host mx.mydomain.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<dsadasd@wdsada.com>: host gmail-smtp-in.l.google.com[173.194.66.26] said:
    550-5.7.1 [xxx.xxx.xxx.154      12] Our system has detected that this message
    is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to
    Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1
    http://support.google.com/mail/bin/answ … wer=188131 for 550
    5.7.1 more information. fm10si316347wib.32 - gsmtp (in reply to end of DATA
    command)

I've confirmed that my ISP has NOT blocked my 25 port, so at this end everything should work. I've only sent mails to my personal accounts, but I was trying to configure DKIM and SPF and did not mark those messages as "not spam". Maybe this is the reason now I can not send mail from the Raspberry Pi? Also, I disabled Amavis/ClamAV in order to free memory from the RPi...

Edit: From what I see, I can remove the blocking (or at least try to) from the Spamhaus Blocklist Removal Center:

http://www.spamhaus.org/pbl/removal/

But there it informs me it's my responsability if I do and then spam is sent from that IP. COnsidering the IP is dynamic, I'm a little affraid about this.  The router has been restarted at least once in these days, and I'm starting to believe the new public IP is the problem (the last one could send from roundcube, but it didn't receive anything on my tests)...

Tips/Hints?

11

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

I had this problem also.
When using a dynamic IP address, inevitably some IPs you get assigned by your ISP are in the blacklists. You can use your ISPs SMTP server as a relay to guarantee email sending. You will have to get down and dirty in some postfix config files tho'.
Here's how I did it :-
confirm your ISPs smtp server details (usually something like mail.ISProvider_example.com) and your ISPs login details. (usually your-email@yourISP.com)

add these lines to your /etc/postfix/main.cf

relayhost = [mail.ISProvider_example.com]
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_passwd
smtp_sasl_security_options =

(some of these lines may already be there so modify or uncomment as necessary)
uncomment this line in your /etc/postfix/master.cf (remove the #)

#submission inet n       -       -       -       -       smtpd

create file /etc/postfix/relay_passwd
and add the following line
mail.ISProvider_example.com login:password

save and chown root:root /etc/postfix/relay_password
then chmod 600 /etc/postix/relay_password
/etc/postfix/sasl_passwd needs changing into a format that Postfix can read
so:
postmap /etc/postfix/sasl_passwd
then:
/etc/init.d/postfix restart (or reboot your machine)

try sending an email check your /var/log/mail.log to see if ok
all commands must be root or sudo
Hope this helps

12

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Thx... I've tried to configure the parameters you mention but I've made some mistake for sure. I get this message on /var/log/mail:

Apr 25 10:20:35 mx postfix/smtp[4910]: 4819123F74: to=<xxxxx@gmail.com>, relay=none, delay=560, delays=559/0.12/0.18/0, dsn=4.4.1, status=deferred (connect to mydomain.no-ip.org[80.31.133.154]:25: Connection refused)

In the relay_passwd I've written

mx.mydomain.com login:password

with both my login and password first in my local mail server (with the same credentials I use on Roundcube) and later with my NoIP user credentials. None seem to work. Here's what the log says after trying to send a message with the NoIP credentials:

Apr 25 10:30:28 mx postfix/smtp[5375]: B2DF123F6C: to=<www-data@mx.mydomain.com>, relay=none, delay=0.2, delays=0.05/0/0.14/0, dsn=4.4.1, status=deferred (connect to mydomain.no-ip.org[80.31.133.154]:25: Connection refused)
Apr 25 10:30:37 mx postfix/smtpd[5401]: connect from mx.mydomain.com[127.0.0.1]
Apr 25 10:30:37 mx postfix/trivial-rewrite[5367]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 25 10:30:37 mx postfix/smtpd[5401]: 8677B23F84: client=mx.mydomain.com[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@mydomain.com
Apr 25 10:30:38 mx postfix/cleanup[5362]: 8677B23F84: message-id=<46b7fb92f6a09f093b2b70db33ad4199@mydomain.com>
Apr 25 10:30:38 mx postfix/qmgr[5351]: 8677B23F84: from=<postmaster@mydomain.com>, size=582, nrcpt=1 (queue active)
Apr 25 10:30:38 mx roundcube: User postmaster@mydomain.com [192.168.1.37]; Message for xxxxxx@gmail.com; 250: 2.0.0 Ok: queued as 8677B23F84
Apr 25 10:30:39 mx postfix/smtpd[5401]: disconnect from mx.mydomain.com[127.0.0.1]
Apr 25 10:30:39 mx postfix/smtpd[5379]: connect from mx.mydomain.com[127.0.0.1]
Apr 25 10:30:39 mx postfix/trivial-rewrite[5367]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 25 10:30:39 mx postfix/smtpd[5379]: A519C23F87: client=mx.mydomain.com[127.0.0.1]
Apr 25 10:30:39 mx postfix/cleanup[5362]: A519C23F87: message-id=<46b7fb92f6a09f093b2b70db33ad4199@mydomain.com>
Apr 25 10:30:39 mx postfix/qmgr[5351]: A519C23F87: from=<postmaster@mydomain.com>, size=1471, nrcpt=1 (queue active)
Apr 25 10:30:39 mx postfix/smtpd[5379]: disconnect from mx.mydomain.com[127.0.0.1]
Apr 25 10:30:39 mx amavis[2264]: (02264-08) Passed CLEAN {RelayedOutbound}, MYNETS/MYUSERS LOCAL [127.0.0.1]:55420 [127.0.0.1] <postmaster@mydomain.com> -> <xxxxxxx@gmail.com>, Queue-ID: 8677B23F84, Message-ID: <46b7fb92f6a09f093b2b70db33ad4199@mydomain.com>, mail_id: Hfx_7UURxofi, Hits: -, size: 582, queued_as: A519C23F87, dkim_new=mydomain.com, 1180 ms
[strong]Apr 25 10:30:39 mx postfix/smtp[5370]: connect to mydomain.no-ip.org[80.31.133.154]:25: Connection refused[/strong]
Apr 25 10:30:39 mx postfix/smtp[5370]: A519C23F87: to=<xxxxx@gmail.com>, relay=none, delay=0.28, delays=0.09/0.05/0.14/0, dsn=4.4.1, status=deferred (connect to mydomain.no-ip.org[80.31.133.154]:25: Connection refused)
Apr 25 10:30:40 mx postfix/smtp[5376]: 8677B23F84: to=<xxxx@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.8, delays=1.4/0.01/0.07/1.2, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as A519C23F87)
Apr 25 10:30:40 mx postfix/qmgr[5351]: 8677B23F84: removed

Any ideas? Thx!

13

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

The details in /etc/postfix/relay_passwd file are NOT your local server OR DNS provider, but those of your internet service provider and the login your router uses to connect to the internet. e.g. for talk talk which is a UK based isp the line would be

smtp.talktalk.net  elvispresley@talktalk.net:password

once you have edited as root/sudo you will need to

sudo postmap /etc/postfix/sasl_passwd and restart postfix

This is what the output to mail.log should look like

Apr 25 14:46:44 www postfix/smtpd[10846]: connect from localhost[127.0.0.1]
Apr 25 14:46:44 www postfix/trivial-rewrite[10848]: warning: do not list domain testdomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 25 14:46:44 www postfix/smtpd[10846]: DC4F211801D8: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@testdomain.com
Apr 25 14:46:45 www postfix/cleanup[10857]: DC4F211801D8: message-id=<9329c7031a6d6d026f8dea461bb57ddd@testdomain.com>
Apr 25 14:46:46 www postfix/qmgr[1922]: DC4F211801D8: from=<postmaster@testdomain.com>, size=620, nrcpt=1 (queue active)
Apr 25 14:46:46 www roundcube: User postmaster@testdomain.com [86.170.226.125]; Message for elvispresley@talktalk.com; 250: 2.0.0 Ok: queued as DC4F211801D8
Apr 25 14:46:46 www postfix/smtpd[10846]: disconnect from localhost[127.0.0.1]
Apr 25 14:46:47 www postfix/smtp[10864]: DC4F211801D8: to=<elvispresley@talktalk.com>, relay=mail.talktalk.com[65.20.0.43]:25, delay=2.7, delays=1.3/0.39/0.77/0.21, dsn=2.0.0, status=sent (250 <534BB3D000C28CB2> Mail accepted)
Apr 25 14:46:47 www postfix/qmgr[1922]: DC4F211801D8: removed

hope this helps

p.s who is your internet service provider, and how do you connect to the internet? ISDN, Cable, Dial Up? I could try and find the settings for you.

14

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Thx again mwharbottle

Understood! My service provider is Movistar in Spain (its a fiber connection, 100/10), I'll look for the smtp provider and see if that user/pass combo works...

p.s who is your internet service provider, and how do you connect to the internet? ISDN, Cable, Dial Up? I could try and find the settings for you.

15

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Bad news. My ISP (Movistar) does not provide email accounts since april 2013. Can I still solve that without an ISP's email account?

16 (edited by mwharbottle 2014-04-26 01:10:49)

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Try this, it may work

smtp.movistar.es login:password

remember to sudo postmap /etc/postfix/sasl_passwd and restart postfix

if not, post your main.cf and master.cf and I'll have a look.
you could always sign up to a smtp relay company such as http://www.authsmtp.com. I had considered this but got mine working in the end

17

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Sorry I have made a typo!
where I say "postmap /etc/postfix/sasl_passwd"  do
sudo postmap hash:/etc/postfix/sasl_passwd

18

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

and also filename sasl_passwd is the same file as relay_passwd.
call it whatever you like

19

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Yes, I already guessed that thing about the relay_passwd file. Any way, I don't have a user/pass for any account at my ISP's SMTP server, so I can't do anything at all in this case.

Anyway, this is strange because when I first installed iredmail, the situation was exactly the opposite to the one I have now. I could send emails from Roundcube on the Raspberry Pi. They were detected as spam in my Gmail account, for example, but sending worked. Receiving, on the other hand, did not work at first.

Now the situation is the reverse, so I shouldn't need your solution in the first place. Weird. Maybe I should reinstall everything from the beginning. I've tried so many things that I don't recall which ones could really worked and which didn't.

20

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

when I first started some mails would be delivered to spam and others bounced back by the recipients server. It's not that there is anything wrong with the default iRedMail setup so reinstalling won't help (don't put yourself through that unnecessarily).
Its that some recipients allow unauthenticated emails in, but to spam or junk folders, and other recipients have a policy of bouncing back anything from particular ip blocks that are assigned to dynamic ranges.
Your IP will be given from a block of addresses owned by Movistar. some of them will be black listed, others will not.(hence why previously mail got through and now it doesn't!) Only Movistar can request them to be unlisted.
Spamhaus in particular have a register of blocks of IP addresses assigned to dynamic ranges held in databases, and if that particular recipient uses Spamhaus as a blacklist source, your email will be bounced. They are permanently listed, and will never be removed. The trick of using a smtp relay fools the recipients server to believe that your email has come from a fixed IP that is not in any of the blacklist, as the ISPs keep them out. (and not your actual IP address). This is how spammers crack a smtp relay server and send shed loads of spam! You will just be doing it legally.
If you look in your router config page you may find a login and password. Just try that and see what happens. Please don't give up!! Its not your server, just the hoops you have to jump through having a dynamic IP address.
If you can't find any details on your router/modem you have 2 options
1/ ask your ISP for a fixed IP address
2/ sign up for a smtp relay account as previously mentioned (no I don't work for http://www.authsmtp.com/)

21

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Fantastic explanation mwharbottle, thank you so much for your time!! Everything makes sense, and I'll try both solutions. Requesting a fixed IP is expensive at Movistar (that service alone is 14€/month, around $20/month) so it's not an option right now. I've checked my router config but found nothing, I'll try again.

Maybe the authsmtp could be the answer. I'll try that if needed and will let you know about my progresss. Thanks again and have a nice weekend wink

22

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Javier
you can use gmail to relay your mails.

Javier,
Podés usar gmail con tu usuario y password para hacer relay.
El único problema es que siempre va a salir la cuenta de gmail como remitente, pero me imagino que si estas usando una Rpi para mandar será solo para avisar cosas.
Suerte y saludos.

Demian

23

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Not a bad idea wink Thx for the tip, I'll try that as well. I would like to use it as a normal server with real addresses, but that could make the day just in case.

Thx for writing that in Spanish, but I guess it's better for everyone else to keep the conversation in English wink

Regards!

depearg wrote:

Javier
you can use gmail to relay your mails.

Javier,
Podés usar gmail con tu usuario y password para hacer relay.
El único problema es que siempre va a salir la cuenta de gmail como remitente, pero me imagino que si estas usando una Rpi para mandar será solo para avisar cosas.
Suerte y saludos.

Demian

24

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Hi,

The server still doesn't sends mail. I've found this post

http://mhawthorne.net/posts/postfix-con … relay.html

(I guess it's written by you, mwharbottle), but after trying to setup Gmail as relay, it still doesn't work. The log is as follows:

Apr 28 22:08:17 mx postfix/smtpd[16826]: connect from mx.mydomain.com[127.0.0.1]
Apr 28 22:08:17 mx postfix/trivial-rewrite[16828]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 28 22:08:18 mx postfix/smtpd[16826]: 1F62523AB7: client=mx.mydomain.com[127.0.0.1], sasl_method=LOGIN, sasl_username=postmaster@mydomain.com
Apr 28 22:08:19 mx postfix/cleanup[16835]: 1F62523AB7: message-id=<12bbb4a81c2af6567a1c9bbd2f2bbc4a@mydomain.com>
Apr 28 22:08:19 mx postfix/qmgr[16795]: 1F62523AB7: from=<postmaster@mydomain.com>, size=569, nrcpt=1 (queue active)
Apr 28 22:08:19 mx roundcube: User postmaster@mydomain.com [192.168.1.36]; Message for xxxx@gmail.com; 250: 2.0.0 Ok: queued as 1F62523AB7
Apr 28 22:08:19 mx postfix/smtpd[16826]: disconnect from mx.mydomain.com[127.0.0.1]
Apr 28 22:08:20 mx postfix/smtpd[16845]: connect from mx.mydomain.com[127.0.0.1]
Apr 28 22:08:20 mx postfix/trivial-rewrite[16828]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 28 22:08:20 mx postfix/smtpd[16845]: 5416C23F56: client=mx.mydomain.com[127.0.0.1]
Apr 28 22:08:20 mx postfix/cleanup[16835]: 5416C23F56: message-id=<12bbb4a81c2af6567a1c9bbd2f2bbc4a@mydomain.com>
Apr 28 22:08:20 mx postfix/qmgr[16795]: 5416C23F56: from=<postmaster@mydomain.com>, size=1458, nrcpt=1 (queue active)
Apr 28 22:08:20 mx postfix/smtpd[16845]: disconnect from mx.mydomain.com[127.0.0.1]
Apr 28 22:08:20 mx amavis[15546]: (15546-14) Passed CLEAN {RelayedOutbound}, MYNETS/MYUSERS LOCAL [127.0.0.1]:49123 [127.0.0.1] <postmaster@mydomain.com> -> <xxx@gmail.com>, Queue-ID: 1F62523AB7, Message-ID: <12bbb4a81c2af6567a1c9bbd2f2bbc4a@mydomain.com>, mail_id: ER5MzJuOXZ0r, Hits: -, size: 569, queued_as: 5416C23F56, dkim_new=dkim:mydomain.com, 1268 ms
Apr 28 22:08:20 mx postfix/smtp[16840]: 1F62523AB7: to=<xxxx@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.3, delays=1.6/0.18/0.07/1.4, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 5416C23F56)
Apr 28 22:08:20 mx postfix/qmgr[16795]: 1F62523AB7: removed
Apr 28 22:08:20 mx postfix/smtp[16846]: 5416C23F56: to=<xxxx@gmail.com>, relay=smtp.gmail.com[173.194.67.109]:587, delay=0.47, delays=0.09/0.22/0.13/0.03, dsn=5.7.0, status=bounced (host smtp.gmail.com[173.194.67.109] said: 530 5.7.0 Must issue a STARTTLS command first. h3sm166688wiz.16 - gsmtp (in reply to MAIL FROM command))
Apr 28 22:08:21 mx postfix/cleanup[16835]: F34A223AB7: message-id=<20140428200820.F34A223AB7@mydomain.com>
Apr 28 22:08:21 mx postfix/qmgr[16795]: F34A223AB7: from=<>, size=3548, nrcpt=1 (queue active)
Apr 28 22:08:21 mx postfix/trivial-rewrite[16828]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains
Apr 28 22:08:21 mx postfix/bounce[16847]: 5416C23F56: sender non-delivery notification: F34A223AB7
Apr 28 22:08:21 mx postfix/qmgr[16795]: 5416C23F56: removed
Apr 28 22:08:21 mx postfix/pipe[16849]: F34A223AB7: to=<postmaster@mydomain.com>, relay=dovecot, delay=0.8, delays=0.06/0.14/0/0.61, dsn=2.0.0, status=sent (delivered via dovecot service)

25

Re: iRedMail on Raspberry Pi with NoIP - Sends mail, doesn't receive mails

Hi Javipas.
No unfortunately I did not write that post.
I do spot in your output file "host smtp.gmail.com[173.194.67.109] said: 530 5.7.0 Must issue a STARTTLS command first"
Just make sure the the line "smtp_use_tls = yes" is in your /etc/postfix/main.cf
try just doing "sudo postmap /etc/postfix/relay_passwd" again before
"sudo /etc/init.d/postfix restart"
If that doesn't work you could email me your main.cf and master.cf files (rather than posting them for everyone to see) and I could look at them. Just let me know.