| Linode Forum https://forum.linode.com/ |
|
| Sendmail issue - missing logs, can't receive mails https://forum.linode.com/viewtopic.php?f=19&t=11432 |
Page 1 of 1 |
| Author: | bartoszk [ Fri Nov 21, 2014 5:58 am ] |
| Post subject: | Sendmail issue - missing logs, can't receive mails |
Hi, I'm having some problems with sendmail in Linux. The thing is when I type the following command to send an e-mail: Code: sendmail bartoszk@companydomain.pl< test.txt it looks like it executed but I don't receive the mail. The file test.txt looks like that: Code: To: serwis@ubuntu-server.linux.companydomain.pl Logs show something like that: Code: $.1.119], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@ubuntu-server.linux.companydomain.pl>: Sender address rejected: Domain not found In the /etc/hosts there are following lines: Code: 127.0.0.1 localhost localhost.linux.companydomain.pl The sendmail.mc file is: Code: DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl Sending mails via Code: sendmail -fserwis@linux.companydomain.pl bartoszk@companydomain.pl < test.txt doesn't work either. linux.companydomain.pl digged: Code: root@ubuntu-server:/home/companydomain# dig linux.companydomain.pl The command: Code: grep -iw from /var/log/mail* output: wklej.to/Bbe0T (it's a link because the log file is far too long to paste it here) What's interesting is the fact that there are no logs from 20th November. The question is: why? There should also be logs from 19th November, since I started struggling with sendmail on Wednesday. But there are not, which is strange. System date/time is set correctly, so the problem isn't there. Another command: Code: ps -aux|egrep '(sendmail|syslog)' gave that output: Code: [color=#FF0000][b]syslog[/b] [/color]400 0.0 0.1 249476 2460 ? Sl Nov19 0:40 r[b][color=#FF0000]syslog[/color][/b]d -c5 How can I fix it? |
|
| Author: | Vance [ Sun Nov 23, 2014 1:46 pm ] |
| Post subject: | Re: Sendmail issue - missing logs, can't receive mails |
Your first sendmail command should attempt delivery to whatever host handles mail for "companydomain.pl". This would be the MX target in DNS, or if one does not exist, the A record for "companydomain.pl". That host apparently checks to make sure that a DNS entry exists for "ubuntu-server.linux.companydomain.pl", which is the domain part of the envelope sender address. If one does not exist, it temporarily rejects the message with "Deferred: 450 4.1.8 <root@ubuntu-server.linux.companydomain.pl>: Sender address rejected: Domain not found". The 450 error code indicates to the sending host that it should retry later. However, it looks like you will need to do one of these for delivery to succeed: * Create a DNS entry for ubuntu-server.linux.companydomain.pl * Configure the receiving mail host for companydomain.pl so it does not require the envelope sender address domain to be in DNS |
|
| Author: | bartoszk [ Mon Nov 24, 2014 3:14 am ] |
| Post subject: | Re: Sendmail issue - missing logs, can't receive mails |
Vance wrote: However, it looks like you will need to do one of these for delivery to succeed: * Create a DNS entry for ubuntu-server.linux.companydomain.pl It's already created, check the /etc/hosts I pasted in a first post. Vance wrote: * Configure the receiving mail host for companydomain.pl so it does not require the envelope sender address domain to be in DNS Could you explain how to do it? |
|
| Author: | Vance [ Thu Nov 27, 2014 2:41 pm ] |
| Post subject: | Re: Sendmail issue - missing logs, can't receive mails |
bartoszk wrote: Vance wrote: However, it looks like you will need to do one of these for delivery to succeed: * Create a DNS entry for ubuntu-server.linux.companydomain.pl It's already created, check the /etc/hosts I pasted in a first post. I imagine you need a real DNS entry, not one in /etc/hosts. We can't check since you haven't told us the actual domain you're using. bartoszk wrote: Vance wrote: * Configure the receiving mail host for companydomain.pl so it does not require the envelope sender address domain to be in DNS Could you explain how to do it? Sorry, I'm not familiar with Sendmail; perhaps someone else can help with that. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|