Koozali.org: home of the SME Server

Outbound Email in SME 8b7

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Outbound Email in SME 8b7
« on: January 19, 2012, 03:28:32 AM »
I am having trouble delivering email outside of localhost.

I tried to send a message to a couple different addresses and the only messages delivered are the ones sent to my local domain.
I did some searching and couldn't find issues specific to mine.

This is my qmail log
Code: [Select]
1326920284.056432500 qp 5217: to=local.admin@mtrose.mtrosemedia.tk, uid=400, ddelay=0.213858, xdelay=0.186889, stat=Sent (did_1+0+1/)
1326920284.056583500 qp 5217: from=<rburns@mtrosemedia.tk>, uid=400, size=1032, nrcpts=1, deferrals=0, qtime=0.214009
1326920284.160651500 qp 5211: to=remote.jeagleton@mtrosecogic.org, uid=453, ddelay=0.412590, xdelay=0.400979, stat=Sent (69.7.180.116_accepted_message./Remote_host_said:_250_ok:_DATA/)
1326920284.166067500 qp 5211: to=remote.mtrose@mtrosecogic.org, uid=453, ddelay=0.418006, xdelay=0.406393, stat=Sent (69.7.180.116_accepted_message./Remote_host_said:_250_ok:_DATA/)
1326920285.013835500 qp 5211: to=remote.rburnsj@gmail.com, uid=453, ddelay=1.265774, xdelay=1.254165, stat=Sent (74.125.45.27_accepted_message./Remote_host_said:_250_2.0.0_OK_1326935956_u30si30298701yhm.102/)
1326920285.013837500 qp 5211: from=<rburns@mtrosemedia.tk>, uid=453, size=909, nrcpts=4, deferrals=0, qtime=1.265776

Here is the email setup I have
Code: [Select]
E-mail settings
POP3 server access Allow private and public (secure POP3S)
IMAP server access Allow private and public (secure IMAPS)
Webmail access Allow HTTPS (secure)
Change e-mail access settings
Virus scanning Enabled
Spam filtering Disabled
Executable content blocking Disabled
Change e-mail filtering settings
E-mail retrieval mode Standard (SMTP)
SMTP authentication Allow both SMTP and SSMTP
Change e-mail reception settings
E-mail to unknown users Send to raymond_burns
Address of internal mail server
Address of Internet provider's mail server
Change e-mail delivery settings

I don't know what logs to look at, but from the logs I posted, everything was processed fine, however, no emails were received from the outside domains.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Outbound Email in SME 8b7
« Reply #1 on: January 19, 2012, 05:01:25 AM »
newburns

Quote
I tried to send a message to a couple different addresses ....

Possibly this reason:
How did you send those messages, using an external email client ?
If so, you need to use authenticated connections to relay mail to external addresses from external email clients connected to your server's mail server.

Quote
SMTP authentication   Allow both SMTP and SSMTP

Configure your email clients for SSMTP and enable authentication for the outgoing mail server
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Outbound Email in SME 8b7
« Reply #2 on: January 19, 2012, 07:18:39 AM »
I'm sorry. The process I used was a few test through /webmail. Then I had some test emails through a php program on my website that had the same results.
Local emails are sent, and emails to other domains are not
Also, I conducted some other tests.
I was able to receive email from an outside domain. The email I received, I was able to respond to that email which is a gmail account. However, I have a separate gmail account which I CC to that email which did not receive it. So again:
I could not Send email to any outside domain
I used gmail account (1) to send an email to my local domain
After receiving that email, I was able to reply and send to gmail account (1) freely.
On one of the replies I CC to gmail account (2).
Gmail account (1) received the message, whilst gmail account (2) did not.
I still cannot send directly to gmail account (2) or any other outside domain, however, I can send to gmail account (1) without a problem.

Which log files would you need to analyze in order to be able to fully assist me in my endeavors?
Everything was done through /webmail
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Outbound Email in SME 8b7
« Reply #3 on: January 19, 2012, 10:32:32 AM »
newburns

look at
qmail
qpsmtpd
sqpsmtpd
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Outbound Email in SME 8b7
« Reply #4 on: January 19, 2012, 02:56:26 PM »
I don't know what logs to look at, but from the logs I posted, everything was processed fine, however, no emails were received from the outside domains.

Do you mean "no emails were received at the outside domains"?

Your system cannot control what happens to messages once they are passed to another system. Your qmail logs show, for example, a message to rburnsj@gmail.com  passed successfully to 74.125.45.27. Since 74.125.45.27 is not an MX for qmail.com, then you must have an SMTPSmartHost configured ("Address of Internet provider's mail server"). If that message was not delivered, then you will have to ask the administrator of 74.125.45.27 (a host on the 1e100.net network). Alternatively, remove/clear that setting, and see if that fixes the problem. If it doesn't, then at least your log files will contain more useful information.

When investigating email delivery problems, you need to be specific and concentrate on individual messages and trace them through the log files. Statements like "some test emails" don't help you to rapidly converge on a diagnosis.

Quote
Gmail account (1) received the message, whilst gmail account (2) did not.

This pretty much guarantees that the problem is outside your SME server. But check that you have the correct addresses. Typos can catch you up here.


Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Outbound Email in SME 8b7
« Reply #5 on: January 20, 2012, 11:09:32 PM »
Okay.
The problem does lie outside of my server.
I understand about sending messages to mulitple emails and not being able to rapidly converge a diagnostic.

I am capable of receiving emails from other domains, and I can reply without a problem. The issue are for email addresses I have not received a message from previously.

I sent an email to two different address *.@gmail.com and *.@pdq.net
The mail log returns:
Code: [Select]
@400000004f199753063754dc new msg 65339997
@400000004f19975306db2a44 info msg 65339997: bytes 892 from <rburns@mtrosemedia$
@400000004f1997530a43c4fc starting delivery 99: msg 65339997 to remote aburns35$
@400000004f1997530a43c8e4 status: local 0/10 remote 1/20
@400000004f1997530a43cccc starting delivery 100: msg 65339997 to remote 4eagle@$
@400000004f1997530a43d0b4 status: local 0/10 remote 2/20
@400000004f1997540de70754 delivery 100: success: 209.249.171.237_accepted_messa$
@400000004f1997540de70f24 status: local 0/10 remote 1/20
@400000004f1997542ceb2b1c delivery 99: success: 74.125.47.27_accepted_message./$
@400000004f1997542ceb32ec status: local 0/10 remote 0/20
@400000004f1997542ceb36d4 end msg 65339997

Those two IP addresses match the domain I sent the message to. I used traceroute to trace the IP addresses. However, the domain must be blocking my message to the specific user. I am wondering if being setup under a dynamic IP has anything to do with it? I've had problems with Craigslist in the past when I was set up under a dynamic IP, so it may be relevant now. If so, how can I respond to one gmail account freely, and not be able to send to other gmail accounts?
Furthermore, if I configure SME to use my dynamic address as a static IP in SME configuration wizard, will that fix my problem?

The last question was for informational purposes only, I will be getting a static IP set on my account later on this evening.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Outbound Email in SME 8b7
« Reply #6 on: January 21, 2012, 12:22:23 AM »
if you are using a dinamic IP, the strange fact is that your mails are delivered sucessfully

config SME to use your ISP's smarthost

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Outbound Email in SME 8b7
« Reply #7 on: January 21, 2012, 12:35:51 AM »
I don't know what a smarthost is.
I will contact comcast in the morning. I have to get the details of my Static Ip, but I will ask them for their smarthost address.
I would rather know how I could have set this up with a dynamic, rather than just accepting the fact, I have to get a static in order to make things work.
More knowledge is better, even if you decide to go another route.
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Outbound Email in SME 8b7
« Reply #8 on: January 21, 2012, 04:38:20 AM »
newburns

Quote
I don't know what a smarthost is.

You can search easily on these forums, it has been answered many, many times.
I'm sure it is also in the FAQ. Please be more proactive in finding your answers.

When you have an external dynamic IP such as is commonly the case with residential Internet services (ie not  a static IP), you can enter your ISP's mail server details in the server manager panel (ie the smarthost setting)
eg mail.yourisp.com (it's usually the address or hostname you would point a email client at eg Outlook if you did not have a SME server and were connecting your PC direct to your ISP's mail server on the the Internet via a physical modem/gateway)
that way outgoing mail from your SME servers mail server is directed through your ISP's mail server.
Your ISP is  usually a reputable source so other mail servers on the Internet will accept happily mail from your ISP's mail server, whereas if you send mail directly from your SME mail server to other mail servers (when using a dynamic IP) your server will not be trusted by the majority of mail servers, so all mail will be rejected and your users will not be able to send mail to most external locations.
If you do not use your ISP's mail server & send direct to other mail servers, then other mail servers will consider your dynamic IP SME server as "unreliable" and treat it as a source of spam.

When you have a static external IP then your servers identity is known and is more likely to be trusted, although requiremenst are far more stringent these days especially regarding proving your mail server is who it claims to be. Your static IP can easily & very quickly be added to RBL lists eg spamhaus, if you send spam. See articles on Reverse DNS, PTR records and SPF here http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Appendix and read the article on (Email) RBL & SBL in the SME Wiki FAQ.
« Last Edit: January 21, 2012, 10:16:49 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: Outbound Email in SME 8b7
« Reply #9 on: January 22, 2012, 02:29:58 AM »
That was it! The static IP was set up today, and all test emails are accepted by the domains I tested.
Next is to stop the annoying certificate error message by using a startssl cert.
Thanks everyone!!
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware