Virtualmin on EC2 mail problem

8 posts / 0 new
Last post
#1 Tue, 12/16/2008 - 23:58

Virtualmin on EC2 mail problem


I'm trying to set up my very own virtualmin instance on EC2, all is good except for the mail. I can send an email from the server, I can receive the email on the server but for some reason I cannot forward the emails I receive to the other email addresses as well as I cannot read the email on the (it show IP address lookup for localhost failed). I know that I can receive the email cos I can read it from the Usermin interface as admin but that's it.

Any help would be highly appreciated Regards Kris

Wed, 12/17/2008 - 06:42

Hi Kris,

What error do you get when trying to forward a message? And what shows up in the email log when you try? The logs are in either /var/log/maillog or /var/log/mail.log.

In regards to the Usermin error -- that's odd, can you post a screenshot showing the exact error you're receiving?


Wed, 12/17/2008 - 23:52 (Reply to #2)

the screenshot was too long, cannot edit so I just post it here again.

Wed, 12/17/2008 - 23:54 (Reply to #3)
Thu, 12/18/2008 - 04:31 (Reply to #4)

Hrm, so, what all is in your /etc/hosts file? Is there a line containing something like this: localhost

I could see that line missing as a possible cause of that error.

Wed, 12/17/2008 - 23:49

Ok, thanks for your fast reply.
This is my log when I try to send a message to my server and have forward set in Virtualmin->Edit Mail and FTP users-> username -> mail forwarding settings:
There is nothing in the /var/log/mail.log from today but I found some entries in the /var/log/ (the email addresses are changed for anti-spam purposes :) ):

Dec 18 09:31:27 etch postfix/smtpd[25571]: connect from[]
Dec 18 09:31:27 etch postfix/cleanup[25575]: warning: database /etc/postfix/bcc.db is older than source file /etc/postfix/bcc
Dec 18 09:31:27 etch postfix/smtpd[25571]: 1D6AB589B5:[]
Dec 18 09:31:27 etch postfix/cleanup[25575]: 1D6AB589B5: message-id=<>
Dec 18 09:31:27 etch postfix/qmgr[4583]: 1D6AB589B5: from=<>, size=2130, nrcpt=1 (queue active)
Dec 18 09:31:29 etch postfix/local[25576]: 1D6AB589B5: to=<>, orig_to=<>, relay=local, delay=2.5, delays=0.1/0.01/0/2.4, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Dec 18 09:31:29 etch postfix/cleanup[25575]: 2F397589B6: message-id=<>
Dec 18 09:31:29 etch postfix/qmgr[4583]: 2F397589B6: from=<>, size=2319, nrcpt=1 (queue active)
Dec 18 09:31:29 etch postfix/local[25576]: 1D6AB589B5: to=<>, orig_to=<>, relay=local, delay=2.6, delays=0.1/0.01/0/2.5, dsn=2.0.0, status=sent (forwarded as 2F397589B6)
Dec 18 09:31:29 etch postfix/qmgr[4583]: 1D6AB589B5: removed
Dec 18 09:31:32 etch postfix/smtp[25589]: 2F397589B6: to=<>, orig_to=<>,[]:25, delay=4.9, delays=2.5/0.01/0.53/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1229592691 8si3765823gxk.43)
Dec 18 09:31:32 etch postfix/qmgr[4583]: 2F397589B6: removed
Dec 18 09:31:57 etch postfix/smtpd[25571]: disconnect from[]

Screenshot from the usermin is attached.
Thanks again

Thu, 12/18/2008 - 04:51

Hey, this is great, I have added this entry into my etc/hosts and the usermin works great, I can see the emails now.

Thanks a lot.

The smaller problem is still there, when I add an email address to which all emails should be forwarded it doesn't work, additional question to that, which partially would solve my problems is the way to download the emails from the server using any desktop mail clients, I can see that devcot pop3/imap running but I cannot figure out what are the settings to use (url, ports etc) to download the email on the client, again any help would be highly appreciated.

Thu, 12/18/2008 - 06:32 (Reply to #7)

Sure, by default, Virtualmin sets up Dovecot to allow IMAP/POP access -- which you could use to access it from a desktop mail client such as Outlook or Thunderbird.

For the hostname, just enter an IP or domain name that resides on your server, it doesn't matter which one.

I might recommend IMAP over POP, and IMAP's default port is 143. It'll use 993 if you tell it to use the more secure IMAPS (IMAP over SSL).

Regarding your email forwarding problem -- what isn't working exactly? Are you saying that it's simply not forwarding, almost like it's ignoring the forward directive?

Topic locked