Page 1 of 1

Swift mailer spam - identify your webserver confusion

Posted: Wed Jan 21, 2009 5:22 am
by iflo
Hi there, I was hoping someone could help sort out a bit of ambiguity I'm having with the following statement:

"Identify Yourself

When you start Swift, the second parameter is typically ignored by end-users. This is the identity of your web server. $swift = new Swift($connection, "[1.2.3.4]");"

Now, I have a web server which runs the web site and has SwiftMailer on it, but I have a completely separate SMTP server which SwiftMailer connects to.

Should the [1.2.3.4] number be the web server, or the mail server? (Yes I know it says web server, but I wanted to double check - from looking at the headers I suspected it should be the mail server, but I'm quite confused now! :D )

Many thanks indeed

Ian

Re: Swift mailer spam - identify your webserver confusion

Posted: Wed Jan 21, 2009 6:08 am
by Chris Corbyn
It should be the *web* server. In other words, it should be the address of the server Swift is running on. The reason for this is that Swift Mailer will identify itself to the SMTP server you connect to and it should identify itself correctly.

EDIT | Thanks for bringing this up. I believe I have missed this detail out of the documentation for the new version, so I will add it :)

Re: Swift mailer spam - identify your webserver confusion

Posted: Wed Jan 21, 2009 6:13 am
by iflo
Thank you so much for your quick response. Web server it is then!

Ian