1

Topic: mail server with dyndns from VMware

I have setup a mail server with iRedMail 0.7.0 using your guide from here:http://code.google.com/p/iredmail/wiki/Installation_on_Debian
I have a dynamic IP address which is bounded to a domain name i used in dyndns.org lets say it mydomain.ath.cx
All ports are forwarded properly to the virtual machine IP but when i try to send an email lets say to test@example.com from test@example.com or from hotmail it doesn't work.I can telnet to my local ip address and also to the localhost address.
my hosts file is:
127.0.0.1       localhost
127.0.1.1       mail.example.com
192.168.2.118   mydomain.ath.cx
# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

my hostname is mail
web server also works meaning i can access from everywhere mydomain.ath.cx/mail and see the roundcude interface,login and send mail but the mails just arent allowed from postfix i think.

I post part of the /var/log/main.log file:
Apr  9 16:05:41 mail postfix/smtpd[1971]: connect from localhost[127.0.0.1]
Apr  9 16:05:41 mail postfix/smtpd[1971]: 651B718533: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=atroulis@example.com
Apr  9 16:05:41 mail postfix/cleanup[1961]: 651B718533: message-id=<2aae0e21df6c888020efdd902454a8a7@example.com>
Apr  9 16:05:41 mail postfix/qmgr[1945]: 651B718533: from=<atroulis@example.com>, size=566, nrcpt=1 (queue active)
Apr  9 16:05:41 mail roundcube: User atroulis@example.com [192.168.2.1]; Message for atroulis@example.com; 250: 2.0.0 Ok: queued as 651B718533
Apr  9 16:05:41 mail postfix/smtp[1973]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr  9 16:05:41 mail postfix/smtp[1973]: 651B718533: to=<atroulis@example.com>, relay=none, delay=0.19, delays=0.17/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Apr  9 16:05:41 mail postfix/smtpd[1971]: disconnect from localhost[127.0.0.1]
Apr  9 16:08:59 mail postfix/smtpd[2018]: connect from col0-omc2-s8.col0.hotmail.com[65.55.34.82]
Apr  9 16:09:00 mail postfix-policyd: connection from: 127.0.0.1 port: 56565 slots: 0 of 4096 used

i tried also to mail to for example atroulis@mydomain.ath.cx but still the same problem

2

Re: mail server with dyndns from VMware

Duskfall wrote:

(connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Your amavisd service is not running.

It's better to do a quick search in google or this forum first.

3

Re: mail server with dyndns from VMware

You were right i searched a bit and removed the amavisd requirement by removing 'content-filter=' in postfix main.cf, then restarted postfix service.
Thank you!

4

Re: mail server with dyndns from VMware

Duskfall wrote:

You were right i searched a bit and removed the amavisd requirement by removing 'content-filter=' in postfix main.cf, then restarted postfix service.
Thank you!

You should just start amavisd. Removing 'content-filter=' will also remove anti-virus and some anti-spam features on iRedMail.

5

Re: mail server with dyndns from VMware

Ok ill try that.Is there a way to send email to hotmail or gmail with a dynamic IP or shall i get a static one?Cause i read that they blacklist all the dynamic IP's and mine seems blacklisted when i enter it here:http://www.mxtoolbox.com/blacklists.aspx
Is there a configuration in iReadMail to use ISP's mail server to forward mail to the above sites through them?

6

Re: mail server with dyndns from VMware

You have to use a static IP address for production server.

To relay outgoing mails, search postfix setting 'relayhost' here:
http://www.postfix.org/postconf.5.html