Link to home
Start Free TrialLog in
Avatar of A A
A A

asked on

configure apticron and set it to use mail server

Dear Team

I have asked before about setting up for smtp server and apticron as I got reply for setting up smtp and the config file for apticron but I need to link mail server to apticron as I dont see in apticron  config  file any  settings to direct apticron to use specific smtp.
 
so to send notification could you please to guide me for apticron and smtp  not smtp for general. .
Avatar of David Favor
David Favor
Flag of United States of America image

If I understand what you're asking.

1) You can only set an email address for apticron.

2) There is now SMTP plumbing in apticron.

3) You'll setup an MTA which specifies your Mail Relay service of choice or in-house MTA of choice.

4) Once you complete step #3 you'll have some sort of sendmail wrapper installed on your machine by default, at this point, likely apticron will simply call whatever sendmail wrapper you have installed.

5) Said differently, apticron "sends email" in the sense that a sendmail wrapper is called to enqueue a message into whatever SMTP transport mechanism you have setup.

When you can manually send a message using your sendmail wrapper, apticron will likely work also.

Note: In /etc/apticron/apticron.conf you'll find...

EMAIL="someone@somewhere.com"

Open in new window


So an email address only, rather than any way to setup a Mail Relay.
An alternative might be to just write a SWAKS wrapper script called sendmail.

This will likely be much faster than setting up a full fledged MTA, just to relay messages for a apticron.
Avatar of A A
A A

ASKER

Hi David

1, 5 are so clear and already done  and nearly you mentioned the solution 

could you please to let me know in details for 2.3.4 and which product I will use to be successful 
1) You're question specifically relates to "need to link mail" which should already be done if your sendmail wrapper is working.

If #5 is working, then 1-4 are also done.

2) About, "direct apticron to use specific smtp", this is already done if your sendmail wrapper is working.

So you'll send a test message... on the command line... through sendmail... to the EMAIL setting in your /etc/apticron/apticron.conf file + if you receive the test apticron will also likely work.

3) Mention what happens when you send a test mail through sendmail to the EMAIL setting address.
Avatar of A A

ASKER

Hi David

how can I setup  swaks  or send mail or postfix  or send mail wrapper for  apticron  known that  I use ami aws linux machine ?
ASKER CERTIFIED SOLUTION
Avatar of David Favor
David Favor
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of A A

ASKER

Thanks David as I will do all your suggestions and update you and kindly attach  swaks to this question when ready so to be useful for all members.


Yep.

I was thinking posting a simple swaks sendmail wrapper will be highly useful.

I've recorded this URL, to update it when I write a wrapper.