Page 1 of 1

Can't get my e-mail server to accept incoming e-mails

Posted: Fri Mar 11, 2011 7:03 pm
by pbolgar
I am not sure what I am doing wrong, I have not been able to get bounce management to work because I can't get my e-mail server to accept e-mails.

Each time I send an e-mail to it to see, it bounces, I get the following:
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:

ext_2@mail.myservername.uk

Message will be retried for 1 more day(s)

Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at http://mail.google.com/support/bin/answ ... nswer=7720
[mail.myserver.uk. (10): Connection refused]
I did set up the MX record,
Domain Type Class TTL Answer
mail.myservername.uk. MX IN 300 mail.myservername.uk. [Preference = 10]
mail.myservername.uk. A IN 300 myserversipaddress

And it is different from the host name of the computer which is news.myservername.uk, also set up:
Domain Type Class TTL Answer
news.myserver.uk. MX IN 300 mail.myserver.uk. [Preference = 10]
mail.myserver.uk. A IN 300 myserveripaddress
I looked in /home/openemm/var/log/20110311-cc-email-bav-update.log, and the only entries it has say:
[11.03.2011 17:32:46] 8880 ERROR/data: Unable to read virtusertable (2, 'No such file or directory')
What do I do to handle this?

Thanks!

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Fri Mar 11, 2011 9:00 pm
by maschoff
Just create an empty virtusertable with touch.

Which one of your FQDNs is the domain name of your server and which one the domain for the sender address of your mails?

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Fri Mar 11, 2011 9:15 pm
by pbolgar
Thanks!
Just create an empty virtusertable with touch.
Where do I put the virtusertable?
Which one of your FQDNs is the domain name of your server and which one the domain for the sender address of your mails?
news.myserver.uk is the domain name of the server and mail.myserver.uk is where I want to set up the answers to come to - like info@mail.myserver.uk.

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Fri Mar 11, 2011 9:23 pm
by maschoff
1. /etc/mail/virtusertable

2. If news.myserver.uk = server hostname and mail.myserver.uk = sender hostname, then you need an MX record for mail.myserver.uk like

Code: Select all

mail.myserver.uk MX news.myserver.uk
This line defines the MX record, meaning that host news accepts e-mails sent to host mail. Please see the OpenEMM Install Guide, section 9.2 for more info.

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Mon Mar 14, 2011 7:08 pm
by pbolgar
maschoff wrote:1. /etc/mail/virtusertable

2. If news.myserver.uk = server hostname and mail.myserver.uk = sender hostname, then you need an MX record for mail.myserver.uk like

Code: Select all

mail.myserver.uk MX news.myserver.uk
This is now done:

Code: Select all

mail.myserver.org.uk	MX	IN	300	news.myserver.org.uk. [Preference = 10]
is the current setting.
This line defines the MX record, meaning that host news accepts e-mails sent to host mail. Please see the OpenEMM Install Guide, section 9.2 for more info.
I went through the install guide and I think I did it, can't find what the bug would be, but I am getting the following:

I am getting the below message with my bounces:

Code: Select all

[news.myserver.uk. (10): Connection refused]
I looked in /var/logs/mail.info and found:

Code: Select all

Mar 14 17:53:28 news sm-msp-queue[1508]: p2EHpYt5014903: to=root, ctladdr=pbolgar (1000/1000), delay=00:01:54, xdelay=00:00:00, mailer=relay, pri=120150, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
In mail.warn and in mail.err I found the below:

Code: Select all

Mar 14 07:54:00 news sendmail[11240]: p2E7npau011224: bogus queue file, uid=122, gid=133, mode=100660
Mar 14 07:54:00 news sendmail[11240]: p2E7npau011224: Losing ./qfp2E7npau011224: bogus file uid/gid in mqueue
What do I do now?

Best,

Peter

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Wed Mar 23, 2011 3:42 pm
by pbolgar
Maschoff,

Thanks for all your help on this so far - I know this is free software and there is no free user support with it and what you have already suggested to me is much appreciated.

Would you be able to point me in which direction to look to get this resolved? I am guessing that it is the sendmail configuration somehow, right?

Best,

pbolgar

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Wed Mar 23, 2011 5:00 pm
by maschoff
Without investigating your specific configuration we do not know a solution. Unfortunately, there is no secret we know. Best would be to have a sendmail expert take a look (and no, we are no sendmail experts, we only use it because it is widely distributed and because of its libmilter capability).

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Wed Mar 23, 2011 5:02 pm
by pbolgar
Thanks! I understand.

I really love openemm, keep up the good work!

Re: Can't get my e-mail server to accept incoming e-mails

Posted: Wed Jun 12, 2013 7:14 am
by paultim374
This line defines the MX record, meaning that host news accepts e-mails sent to host mail. Please see the OpenEMM Install Guide, section 9.2 for more info.