cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound SMTP Email Server seems to be not starting

effect
Champ in-the-making
Champ in-the-making
I'm using this properties for setting up the server
email.inbound.enabled=true
email.inbound.unknownUser=anonymous
email.server.enabled=true
email.server.port=25
email.server.domain=myalfresco.com
email.server.connections.max = 3
email.server.allowed.senders=.*
but i don't see any activity on the 25 port when using netstat (and no emails are recieved).
I've added aliasable aspect for my email folder programmaticaly:
final Map<QName, Serializable> props = new HashMap<QName, Serializable>(1);
props.put(EmailServerModel.PROP_ALIAS, "inbox");
NodeRef nodeRef = new NodeRef(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, id); // id of my folder
nodeService.addAspect(nodeRef, EmailServerModel.ASPECT_ALIASABLE, props);
I've already added the 25 port and java.exe to windows firewall though it's disabled. What am I missing?
p.s. forgot the log: http://pastebin.com/WJpJgCcy
I can see i have messages
org.alfresco.service.cmr.dictionary.InvalidAspectException: 03030000 The aspect is invalid: {http://www.alfresco.org/model/content/1.0}aliasable
this is an issue but i can't relate it to why the server is not available at all
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
Are there any messages in your alfresco.log file?  In particular related to the email subsystems?

And does "myalfresco.com" resolve correctly?

effect
Champ in-the-making
Champ in-the-making
just added the log to my first post
thank you for the reply

mrogers
Star Contributor
Star Contributor
I can't see how that code corresponds to the error message.   In particular the error message is for the cm namespace.

I suggest as an experiment you set the email alias through the Alfresco Explorer UI rather than by code.

effect
Champ in-the-making
Champ in-the-making
> I can't see how that code corresponds to the error message. In particular the error message is for the cm namespace.
I agree, i don't see a direct connection neither. But should the smtp server be running even if i woudn't set any email aliases?
> I suggest as an experiment you set the email alias through the Alfresco Explorer UI rather than by code.
I had that thought, but i'm new to alfresco and it seems that the Alfresco Explorer is turned off in our project. At least and haven't found the way to get to it yet. I know i should use something like localhost/alfresco, but there's only a client from the project on localhost. Could you, please, tell me how can i get to the AE?

effect
Champ in-the-making
Champ in-the-making
I've found the reason why the smtp server didn't start. Turns out i needed to look at bootstrap config
<bean id="InboundSMTP" class="org.alfresco.repo.management.subsystems.ChildApplicationContextFactory" parent="abstractPropertyBackedBean">
    ….
    <property name="autoStart">
        <value>false</value>
    </property>
</bean>
It did work after that

steph2909
Champ in-the-making
Champ in-the-making
Hello!

UPDATE/2013-5-27/13:52:
Now i find the config file; the parameter (autoStart) is on true - but the SMTP did not start?

UPDATE/2013-5-27/14:10
It seams so it is a problem with my FW or the FW of my Provider!

UPDATE/2013-5-27/15:44
OK now i know what happens - Ubuntu use AppArmor and blocked per default the Port 25. I shutdown AppArmor with the Option: AppAmore teardown to unload all Profiles; but it it doesn't work???
No E-Mail in Folder:

1.) I have a Special User for incoming E-Mail
2.) The User is in the EMAIL_CONTRIBUTORS Group
3.) I mark the Inbox-Folder with a E-Mail Aspect and Alias emailin
4.) I think my config is OK:

### Inbound E-Mail ###
email.inbound.unknownUser=emailin
email.inbound.enabled=true
email.server.enabled=true
email.server.port=25
email.server.domain=trusdebt.de
email.server.allowed.senders=.*

I am helpless?



UPDATE/2013-5-28/16:58

I fix all my issues!!!

1st - be care your Linux Distribution has not install a other SMTP Server like postfix 😉

2ed - If you use a gmail.com account you get trouble with STARTTLS; you must configure your Alfresco Inbound Option like: email.server.hideTLS=true - then you get your mails from gmail.com 

3rd - Give a INBOX-Folder as admin user the group right: everyone 


in my Alfresco Installation i found nothing of SMTP bootstrap config file. It seams so the SMTP Server dont start. If i made a nmap scan, i can't find a port 25???

Not shown: 990 closed ports
PORT      STATE    SERVICE
22/tcp    open     ssh
80/tcp    open     http
135/tcp   filtered msrpc
139/tcp   filtered netbios-ssn
445/tcp   filtered microsoft-ds
7070/tcp  open     realserver
8009/tcp  open     ajp13
8080/tcp  open     http-proxy
8443/tcp  open     https-alt
50500/tcp open     unknown


THX
Steph