Swift mailer spam - identify your webserver confusion

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
iflo
Forum Newbie
Posts: 2
Joined: Wed Jan 21, 2009 5:14 am

Swift mailer spam - identify your webserver confusion

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Swift mailer spam - identify your webserver confusion

Post 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 :)
iflo
Forum Newbie
Posts: 2
Joined: Wed Jan 21, 2009 5:14 am

Re: Swift mailer spam - identify your webserver confusion

Post by iflo »

Thank you so much for your quick response. Web server it is then!

Ian
Post Reply