Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
to build this server which will serve multiple domains. It can send mail but unables to receive mail.
$ tail /var/log/mail.log
Code:
Feb 9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8]
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <mail@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<labelling@kneeplace.com> to=<mail@mydomain.com> proto=SMTP helo=<e-bs.regit.ru>
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8]
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8]
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb 9 10:03:37
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb 9 10:03:37
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb 9 10:03:37
On server VM terminal
=====================
$ dig mail.mydomain.com
to build this server which will serve multiple domains. It can send mail but unables to receive mail.
$ tail /var/log/mail.log
Code:
Feb 9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb 9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb 9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8]
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <mail@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<labelling@kneeplace.com> to=<mail@mydomain.com> proto=SMTP helo=<e-bs.regit.ru>
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8]
Feb 9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8]
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb 9 10:03:37
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb 9 10:03:37
Feb 9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb 9 10:03:37
On server VM terminal
=====================
$ dig mail.mydomain.com[code]
@deep27ak dovecot is configured in case you want to enable clients to fetch mails from mail server
@TS it seem your host is not getting resolved when you dig for mail.domain it must reply you with proper answer i.e. it must reply then IP address for your mail.domain it's only then mails can reach your server. make sure DNS is giving reply i.e. ANSWER SECTION when you make a query for host name of your mail server. and as far as your configuration file(/etc/postfix/main.cf) is concern it seems ok to me.
ahh wait it seems you have already fixed DNS part! sorry you may ignore above part.
another thing I've seen that you have enabled "relayhost =" directive I think it is not necessary in case you want your server to accept mails. To the best of my knowledge relayhost is used for forwarding mails to another mail server you might try commenting out that line.
@deep27ak dovecot is configured in case you want to enable clients to fetch mails from mail server
@TS it seem your host is not getting resolved when you dig for mail.domain it must reply you with proper answer i.e. it must reply then IP address for your mail.domain it's only then mails can reach your server. make sure DNS is giving reply i.e. ANSWER SECTION when you make a query for host name of your mail server. and as far as your configuration file(/etc/postfix/main.cf) is concern it seems ok to me.
ahh wait it seems you have already fixed DNS part! sorry you may ignore above part.
another thing I've seen that you have enabled "relayhost =" directive I think it is not necessary in case you want your server to accept mails. To the best of my knowledge relayhost is used for forwarding mails to another mail server you might try commenting out that line.
Thank you
regards
Hi,
Thanks for your advice. Tried it.
1) comment out the line "relayhost="
2) restart /etc/postfix
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.