Wednesday, January 13, 2016

Relay All Postfix Mails to Another SMTP Server

Edit /etc/postfix/main.cf

Add the relayhost parameter to proper smtp server like

relayhost=[smtp2.myserver.com]

Restart postfix service

Flush Redhat Mail Queue

postsuper -d ALL

postsuper -d ALL deferred


Saturday, January 2, 2016

Calling Taglib Methods in Grails Console

Loading Taglib Class (e.g. here ApplicationTaglib ):

def g = ctx.getBean(org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib.class.getName())

Calling Taglib Method:

g.createLink(controller: 'invitation', action: 'accept', params:[id: 'adasdasdas'])
g.link(action: 'create')