WebFaction
Community site: login faq

Hi people! I need some help with setting up sendmail in Trac (using an e-mail account from webfaction). Could I get an example snippet from a functioning trac.ini ?

Should I use email_sender = SendemailEmailsender? or SmptEmailSender? How about choosing the mail-address? All options seem to be smtp_... what do I do when using sendmail?

As you can see, lots of questions, so I'd rather just see a functioning example, smtp or not.

regards, /JayKay

asked 18 Dec '10, 14:13

jaykay
113
accept rate: 0%


I would recommended using the SMTP module. We do have sendmail enabled on our servers however it is mostly to satisfy the default PHP settings. Since trac is partly configured to use SMTP already it is easier to use it. The SMTP username/password will be the mailbox name. The server is smtp.webfaction.com. The sending e-mail address must also exist within the control panel. If you submit a support ticket we can take a look and give you more information.

permanent link

answered 18 Dec '10, 14:21

johns
5.4k312
accept rate: 23%

The exact configuration options are listed at trac's official docs,

http://trac.edgewall.org/wiki/TracNotification#ConfigurationOptions

The following settings should be all you need to change,

# the domain name
smtp_default_domain = 'domain.com'
# The address the user will see as "From:". Must be a valid e-mail address within the control panel
smtp_from = 'you@domain.com'
# The name the user will see in the e-mail, 
smtp_from_name = 'Your Name'
# The mailbox name
smtp_user = 'myusername'
# Same as the mailbox password
smtp_password = 'mypassword'
# The reply-to address the user will see in the e-mail
smtp_replyto = 'you@domain.com'
# The smtp server
smtp_server = smtp.webfaction.com
permanent link

answered 18 Dec '10, 14:47

johns
5.4k312
accept rate: 23%

edited 18 Dec '10, 14:47

Thank you for the quick answer! Okay, I will go with SMTP, and I've added smtp.webfaction.com as the server. I thought about trying to ask here for a snippet rather than a ticket so that it's publicly available for the next person to set this up.

If I won't get any replies, I'll create a ticket. But here goes:

ignore_domains =

mime_encoding = none

sendmail_path = sendmail

smtp_always_bcc =

smtp_always_cc =

smtp_default_domain = web[num].webfaction.com

smtp_enabled = true

smtp_from = 'myusername'@localhost

smtp_from_name = 'myusername'

smtp_password = 'mypassword'

smtp_port = 25

smtp_replyto = 'myusername'@localhost

smtp_server = smtp.webfaction.com

smtp_subject_prefix = default

smtp_user = 'myusername'

ticket_subject_template = $prefix #$ticket.id: $summary use_public_cc = false

use_short_addr = false

use_tls = false

permanent link

answered 18 Dec '10, 14:34

jaykay
113
accept rate: 0%

edited 18 Dec '10, 14:36

I'm sorry. :( I really thought my e-mail accounts were set up properly, but apparently that was not the case. That combined with your help above made it work. Thank you very much for the super-fast help. Much appreciated!

/ JayKay

permanent link

answered 18 Dec '10, 15:30

jaykay
113
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×26
×10

question asked: 18 Dec '10, 14:13

question was seen: 4,245 times

last updated: 18 Dec '10, 15:30

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM