| Linode Forum https://forum.linode.com/ |
|
| Postfix Problems: Server sending mail to members.linode.com https://forum.linode.com/viewtopic.php?f=11&t=9095 |
Page 1 of 1 |
| Author: | forumstalker [ Tue Jul 03, 2012 5:10 pm ] |
| Post subject: | Postfix Problems: Server sending mail to members.linode.com |
Hello, It was only a few days ago after installing logwatch that I realized Postifx has a ton of errors and has been like this for some time. It seems to be attempting to send mail to root@members.linode.com This is always refused, which I guess is to be expected. Just so you know, I have mail from all my domains either handled from Google Apps (working as intended, at least I think so) or forwarded directly to me from my registrar. So I don't expect the server to be handing mail unless someone is trying to send me inquiries from the "contact me" pages on my domains. Basically its set up the way its described on VPSbible.com http://vpsbible.com/email/setup-postfix-email/ Some other highlights: 1) Some mail is from root@members.linode.com also. 2) Some "from" fields are blank, they just say <> 3) One of the emails is from www-data to noreply@crushyourcompetition. status "bounced" . I haven't sent any emails to that website. Maybe this is the key? Some files in my wordpress installs were chowned www-data but I fixed that. Not sure if that was an intrusion of any sort. 4) The reverse IP is set up correctly to my hostname (dig -x my server IP shows my hostname correctly listed). For a long time it wasn't and web page form mail and google apps still worked. However, now that I have it correctly I still see the same old errors in the mail.info log. 5) Using the following webpage to debug Postfix, http://www.postfix-book.com/debugging.html I realize that my server may not be able to resolve hostnames. When I performed the "2.1 Checking the Network" step, telnet to 127.0.0.1: connection was refused, when I tried telnet to mailabuse, it timed out. Pinging my server from my computer was also refused. 6) The server is able to send emails to me from logwatch successfully. 7) I tried to set up logrotate to send mail but it didn't recognize the "mail command" so I gave up. In any case, I do not want my server sending spam of any kind, if thats what is going on here. I cannot figure out which program on my server is trying to send mail at all. If you want to see the mail.info log for the past day or so, here's a pastebin link http://pastebin.com/kze9MBvj (link expired) I've masked the domain fields. They will read either "mydomain#1" "mydomain#2" etc. I also masked the IP address for members.linode.com to XX.XX.XXX.X etc The pastebin for my Postfix main.cf file here here: http://pastebin.com/wMD3QYTE (link expired) Notes: my domains are edited out also. This only becomes a problem for me where $mydomain should be left as is? Following the VPSbible.com tut thats how some of it was left in question. My comments are highlighted and prefixed by a double # to indicate where I'm a bit confused. Thanks for any info you can provide. Best regards Jane |
|
| Author: | Dweeber [ Wed Jul 04, 2012 8:20 am ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
forumstalker wrote: Some other highlights: 2) Some "from" fields are blank, they just say <> Most bounce mail (vacation notices too) use a null sender. That is normal. Quote: 3) One of the emails is from www-data to noreply@crushyourcompetition. status "bounced" . I haven't sent any emails to that website. Maybe this is the key? Some files in my wordpress installs were chowned www-data but I fixed that. Not sure if that was an intrusion of any sort. Indication that your Website is sending email. The web server is owned by www-data so any email it sends will use that. Quote: 4) The reverse IP is set up correctly to my hostname (dig -x my server IP shows my hostname correctly listed). For a long time it wasn't and web page form mail and google apps still worked. However, now that I have it correctly I still see the same old errors in the mail.info log. You provided no info to diagnose your DNS. Quote: 7) I tried to set up logrotate to send mail but it didn't recognize the "mail command" so I gave up. No info provided on how you tried to set it up. Quote: If you want to see the mail.info log for the past day or so, here's a pastebin link http://pastebin.com/kze9MBvj. I've masked the domain fields. They will read either "mydomain#1" "mydomain#2" etc. I also masked the IP address for members.linode.com to XX.XX.XXX.X etc Obfuscated Data... If you can't figure it out, provide real data. |
|
| Author: | forumstalker [ Thu Jul 05, 2012 5:34 am ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
Hi Kevin, Thanks for responding to my post and for offering any help you can provide. I responded to some of your questions below: Quote: You provided no info to diagnose your DNS. I'm not really sure how to diagnose my DNS thoroughly/properly. I used the "check" feature in the linode DNS admin panel and they all say "OK." Otherwise from observing how a few people have checked DNS in this email forum, Here is the dig x my IP Code: ; <<>> DiG 9.7.0-P1 <<>> -x XXX.XXX.XXX.XX Linked below is a screenshot of what logwatch reports for Postfix here. If you need any more information let me know. http://i136.photobucket.com/albums/q175 ... gwatch.jpg Quote: 7) I said: I tried to set up logrotate to send mail but it didn't recognize the "mail command" so I gave up. You said: No info provided on how you tried to set it up. I added a "mail" command to the stanza in my "allwebsites" file in the logrotate.d folder, just like below: Code: /home/username/pathtomywordpresslogs/*/log/*log Doing a test verbose (vfd?) logrotate run gives me an "unexpected text" error. No logs have ever been sent to me. Quote: I said: If you want to see the mail.info log for the past day or so, here's a pastebin link... You said: Obfuscated Data... If you can't figure it out, provide real data. Here is a look at it without the redacted IPs. The members.linode IP is not my server IP. My server IP is very different from this. A small sample of it is here: Code:
Thanks again. P. S. My /etc/aliases file reads: Code: root: myusername |
|
| Author: | forumstalker [ Thu Jul 05, 2012 5:44 am ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
By the way, re-reading the postfix config tut on the VPSbible.com site as well as a comparing to an automatic script posted on that same site I figured out that that the following code in the Postfix main.cf may be the correct one. Originally I had that listed with my actual domain name. Now myorigin is literally listed as "$mydomain" like below. Code: #myorigin = /etc/mailname Full code listed in the postfix main.cf here: Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version |
|
| Author: | Stever [ Thu Jul 05, 2012 12:58 pm ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
forumstalker wrote: Code: mydestination = $cigarettegirl, localhost.$cigarettegirl, localhost Don't put the $ in front of a literal string - it is used to represent a variable reference. In other words: $mydomain is OK $mail.example.com should just be mail.example.com If you have set $mydomain correctly (which it appears you now have), you probably want something more like Code: mydestination = $mydomain, localhost.$mydomain, localhost EDIT: Actually, now reading your original post it isn't clear to me where you want the mail generated by your server to end up. If you expect it to reach a google account, then you really just want mydestination to contain the localhost entries and maybe a $myhostname. |
|
| Author: | forumstalker [ Thu Jul 05, 2012 5:54 pm ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
Hi Stever, I tried changing my hostname setting to the following: Code: hostname = $myhostname After I restarted Postfix I got the following error message: * Stopping Postfix Mail Transport Agent postfix postfix: warning: unreasonable macro call nesting: "myhostname" postfix: fatal: dictionary mail_dict: macro processing error [fail] So I went to the backup main.cf I had when Postfix was initially installed and put it back to Code: myhostname = liXXX-XX.members.linode.com Restarting Postfix didn't report any errors. Though I'm not sure if it should remain that way or back to my original setting of: Code: hostname =myhost.mydomain I also removed the "$"s from the mydestination variable and still have the same error messages in my mail.info log. Code: mydestination = mydomain, localhost.mydomain, localhost Best Jane |
|
| Author: | forumstalker [ Thu Jul 05, 2012 6:03 pm ] |
| Post subject: | Re: Postfix Problems: Server sending mail to members.linode. |
Is the members.linode.com[67.18.186.61]:25: found in my mail.info log someone else's linode? |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|