These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Virtualmin on EC2 mail problem on the new forum.
Hello,
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 exampledomain.com:20000 (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
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?
Thanks,
-eric
the screenshot was too long, cannot edit so I just post it here again.
and again ;) [img size=561]http://www.virtualmin.com/components/com_fireboard/uploaded/images/vmscr...
Hrm, so, what all is in your /etc/hosts file? Is there a line containing something like this:
127.0.0.1 localhost
I could see that line missing as a possible cause of that error.
-Eric
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/mail.info (the email addresses are changed for anti-spam purposes :) ):
[code:1]
Dec 18 09:31:27 etch postfix/smtpd[25571]: connect from mail-qy0-f15.google.com[209.85.221.15]
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: client=mail-qy0-f15.google.com[209.85.221.15]
Dec 18 09:31:27 etch postfix/cleanup[25575]: 1D6AB589B5: message-id=<4633b1790812180131w2e910fcfh4406006ed042040e@mail.gmail.com>
Dec 18 09:31:27 etch postfix/qmgr[4583]: 1D6AB589B5: from=<k.g@gmail.com>, size=2130, nrcpt=1 (queue active)
Dec 18 09:31:29 etch postfix/local[25576]: 1D6AB589B5: to=<gpsbuggy@ec2-75-101-170-126.compute-1.amazonaws.com>, orig_to=<gpsbuggy@gpsbuggy.com>, 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=<4633b1790812180131w2e910fcfh4406006ed042040e@mail.gmail.com>
Dec 18 09:31:29 etch postfix/qmgr[4583]: 2F397589B6: from=<k.g@gmail.com>, size=2319, nrcpt=1 (queue active)
Dec 18 09:31:29 etch postfix/local[25576]: 1D6AB589B5: to=<gpsbuggy@ec2-75-101-170-126.compute-1.amazonaws.com>, orig_to=<gpsbuggy@gpsbuggy.com>, 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=<k.g@gmail.com>, orig_to=<gpsbuggy@gpsbuggy.com>, relay=gmail-smtp-in.l.google.com[209.85.217.183]: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 mail-qy0-f15.google.com[209.85.221.15]
[/code:1]
Screenshot from the usermin is attached.
Thanks again
Regards
Kris
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.
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?
-Eric