AnsweredAssumed Answered

email setting

Question asked by bertelu on Mar 1, 2010
Latest reply on Mar 1, 2010 by sselvan
hi folks, couple of problem with outbound email setting.
i've modified the repository.properties as declared in other wiki/posts ans looks like this:
# Email configuration
mail.host=smtp.G.ho.st
mail.port=25
mail.username=bertelu@G.ho.st
mail.password=password
# Set this value to UTF-8 or similar for encoding of email messages as required
mail.encoding=UTF-8
# Set this value to 7bit or similar for Asian encoding of email headers as required
mail.header=
mail.from.default=bertelu@g.ho.sts
mail.smtp.auth=true
mail.smtp.timeout=30000

now, i've setted a rule to send a notification email to a user every time a document are uploaded.
sometime the mail goes, sometime not.
the behavior unespected is that the sender use by alfresco, is not the one specified in mail.from.default, but the one specified in the user profile.
i.e.
created a test user that have email as "test@g.ho.st"
created a second test user with email as "test2@g.ho.st"
well. if the test2 user is logging and upload a new document, an email is issued from:test2@g.ho.st" to user specified.
if test user  is logging and upload a new document, an email is issued from:test@g.ho.st" to user specified.
what i'm expecting is that the email is coming from bertelu@g.ho.st, and not from the single user, even because maybe that user is not allowed by the SMTP server to send email.

do i forgo sometinh in the config? should i config other files?

and second problem. in the notification email, the link is always reporting the link as "http:\\localhost:8080….." is there any place to config the hostname instead localhost?


thanks in advance.

Outcomes