> -----Original Message-----
> From: [email protected] On Behalf Of Kousik Maiti
> Sent: 13 December 2011 04:25
> To: trac-users
> Subject: [Trac] Regarding email configuration
> 
> Hi list,
> I want to use our smtp server for ticket. I configured it but 
> not able to send email. 
> 
> Warning: The ticket has been created, but an error occurred 
> while sending notifications: (553, '5.5.4 <$user>... Domain 
> name required for sender address $user', u'$user')

That looks to me like your system is configured to use the usernames and 
expects the smtp server to understand them (what format are your usernames?), 
whilst the server is saying you are not supplying the `@domain` portion of the 
address(es)...  Let's have a look, using 
http://trac.edgewall.org/wiki/TracIni#notification-section as a reference...

> My trac.ini file is 
> 
> [notification]
> admit_domains =
> always_notify_owner = true
> always_notify_reporter = true
> always_notify_updater = true
> ambiguous_char_width = single
> email_sender = SmtpEmailSender
> ignore_domains =
> mime_encoding = base64
> sendmail_path = sendmail

...remove this if using SMTP (sendmail is a different option)

> smtp_always_bcc =
> smtp_always_cc =
> smtp_default_domain =

...perhaps you need this (but _only_ if your usernames are the prefix of the 
email address, e.g. username `mark.cooke`, email `[email protected]`, 
smtp_default_domain = `domain.net`)

> smtp_enabled = true
> smtp_from = $user

...personally I have this (and `smtp_replyto`) configured to my email address 
so I get all the error reports!

> smtp_from_name = $user
> smtp_password = $password
> smtp_port = XXX
> smtp_replyto =
> smtp_server =smtp.servername.com
> smtp_subject_prefix = __default__
> smtp_user =
> ticket_subject_template = $prefix #$ticket.id: $summary
> use_public_cc = true
> use_short_addr = false
> use_tls = true
> ...
> 
> smtp_port and smtp_server are properly given.
> 
> Can anybody tell what should be the configuration?
> 
> Thanks in advanced.
> -- 

Depending on your usernames, your users may need to make sure they have edited 
their `preferences` to specify their email address, then trac will substitute 
this for the username when sending emails.

Hope that helps,

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to